summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/km-modes.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/init/km-modes.el b/init/km-modes.el
index 071ae56..e4470a1 100644
--- a/init/km-modes.el
+++ b/init/km-modes.el
@@ -11,8 +11,7 @@
)
"Auto mode mappings")
-(defun km/add-mode (mode)
- (setq auto-mode-alist
- (cons mode auto-mode-alist)))
-
-(mapcar 'km/add-mode km/modes)
+(mapcar
+ (lambda (mode) (setq auto-mode-alist
+ (cons mode auto-mode-alist)))
+ km/modes)