about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2015-01-16T13·42+0100
committerVincent Ambo <vincent@kivra.com>2015-01-16T13·42+0100
commitd9bd9ef50c19a6b918a490b429d6571685446c22 (patch)
treed3a8974d8a07c602bd29cce0d07da6e2d06d6b9e /init
parente5ece0c35a3ea0d6cbc155453786e8922ea2ab34 (diff)
[init] Add Erlang config
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)