summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-06-02 11:05:02 +0100
committerAlan Pearce2013-06-02 11:05:02 +0100
commitf9e008b9fa277dad7e412f74b563951187f7f003 (patch)
tree2574452002fe4abd625e6952f50d4788ce5cd2e2 /emacs
parente89e6343160ae694fdf51feaac7e2531c83de5c2 (diff)
downloadnixfiles-f9e008b9fa277dad7e412f74b563951187f7f003.tar.lz
nixfiles-f9e008b9fa277dad7e412f74b563951187f7f003.tar.zst
nixfiles-f9e008b9fa277dad7e412f74b563951187f7f003.zip
Emacs: enable auto-indent-mode in lisps and set its indent level to 2
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f880cb3b..0df2b1f1 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -863,8 +863,8 @@ Also returns nil if pid is nil."
   (eldoc-add-command 'paredit-backward-delete 'paredit-close-round)
 
   (if (featurep 'auto-indent-mode)
-      (progn (auto-indent-mode -1)
-             (setq lisp-body-indent 2)))
+      (progn (set (make-local-variable 'auto-indent-assign-indent-level) 2)
+             (auto-indent-mode +1)))
 
   (show-paren-mode t)
   (setq indent-tabs-mode nil)