summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-06-02 11:05:02 +0100
committerAlan Pearce2013-06-02 11:05:02 +0100
commitf9e008b9fa277dad7e412f74b563951187f7f003 (patch)
tree2574452002fe4abd625e6952f50d4788ce5cd2e2
parente89e6343160ae694fdf51feaac7e2531c83de5c2 (diff)
downloaddotfiles-f9e008b9fa277dad7e412f74b563951187f7f003.tar.lz
dotfiles-f9e008b9fa277dad7e412f74b563951187f7f003.tar.zst
dotfiles-f9e008b9fa277dad7e412f74b563951187f7f003.zip
Emacs: enable auto-indent-mode in lisps and set its indent level to 2
-rw-r--r--emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f880cb3..0df2b1f 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)