summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-26 14:40:33 +0200
committerAlan Pearce2017-06-26 14:40:33 +0200
commit5194cca4d336e136caa5a0009c3f6e25e75b2a48 (patch)
treea0d8d1f4f4784dda51e751edce9a2c2b79ffc40e
parent681ed8c8324205d69ad2c083737f72409c3df162 (diff)
downloadnixfiles-5194cca4d336e136caa5a0009c3f6e25e75b2a48.tar.lz
nixfiles-5194cca4d336e136caa5a0009c3f6e25e75b2a48.tar.zst
nixfiles-5194cca4d336e136caa5a0009c3f6e25e75b2a48.zip
Emacs: Use electric-indent everywhere; not just in C-like modes
-rw-r--r--emacs/.emacs.d/init.org3
1 files changed, 1 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 30046891..2082f884 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -864,6 +864,7 @@ tabstops is probably never going to happen.
 #+BEGIN_SRC emacs-lisp
 (setq-default tab-width 2
               indent-tabs-mode nil)
+(electric-indent-mode +1)
 #+END_SRC
 
 
@@ -2092,8 +2093,6 @@ quite a few other modes are derived from it.
 #+BEGIN_SRC emacs-lisp
 (use-package cc-mode
   :defer 5
-  :init (progn
-          (add-hook 'c-mode-common-hook #'electric-indent-mode))
   :config (progn
             (setq c-default-style '((java-mode . "java")
                                     (awk-mode . "awk")