about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/modes.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/init/modes.el b/init/modes.el
index c1d5c37253cd..6ed5c7ee3f49 100644
--- a/init/modes.el
+++ b/init/modes.el
@@ -21,10 +21,14 @@
 
 ;; Configure Erlang mode
 
-;; Don't indent after '>' while I'm writing
-(add-hook 'erlang-mode-hook
-          '(lambda ()
-             (local-set-key ">" 'self-insert-command)))
+(defun erlang-mode-init-setup ()
+  (interactive)
+  ;; Don't indent after '>' while I'm writing
+  (local-set-key ">" 'self-insert-command)
+  ;(local-set-key "RET" 'newline)
+  )
+
+(add-hook 'erlang-mode-hook 'erlang-mode-init-setup)
 
 ;; Enable projectile for all things programming
 (add-hook 'prog-mode-hook 'projectile-mode)