about summary refs log tree commit diff
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
parente5ece0c35a3ea0d6cbc155453786e8922ea2ab34 (diff)
[init] Add Erlang config
-rw-r--r--init.el1
-rw-r--r--init/modes.el12
2 files changed, 9 insertions, 4 deletions
diff --git a/init.el b/init.el
index 26c5dfab8216..d650eb2b590b 100644
--- a/init.el
+++ b/init.el
@@ -23,6 +23,7 @@
     confluence
     dash
     dockerfile-mode
+    erlang
     flx-ido
     flycheck
     go-mode
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)