all repos — nixfiles @ f9e008b9fa277dad7e412f74b563951187f7f003

System and user configuration, managed by nix and home-manager

Emacs: enable auto-indent-mode in lisps and set its indent level to 2
Alan Pearce alan@alanpearce.co.uk
Sun, 02 Jun 2013 11:05:02 +0100
commit

f9e008b9fa277dad7e412f74b563951187f7f003

parent

e89e6343160ae694fdf51feaac7e2531c83de5c2

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -863,8 +863,8 @@ (redshank-mode +1))   (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)