all repos — nixfiles @ 5256360f3e1cab6435c7a4f3d7c73358b098465b

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

Emacs: Fix incorrect lisp auto-indentation
Alan Pearce alan@alanpearce.co.uk
Wed, 02 Jul 2014 18:38:06 +0100
commit

5256360f3e1cab6435c7a4f3d7c73358b098465b

parent

50aeb46604892d696cba76e0c28ec532bac92361

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -363,12 +363,11 @@ auto-indent-blank-lines-on-move nil                   auto-indent-assign-indent-level 4
                   auto-indent-backward-delete-char-behavior nil
                   auto-indent-delete-trailing-whitespace-on-save-file t
-                  auto-indent-mode-untabify-on-yank-or-paste nil)
+                  auto-indent-mode-untabify-on-yank-or-paste nil
+                  auto-indent-known-indent-level-variables
+                  (remq 'lisp-body-indent auto-indent-known-indent-level-variables))
             (add-to-list 'auto-indent-disabled-modes-list 'jinja2-mode)
-            (auto-indent-global-mode)
-            (defun lisp-auto-indent-mode ()
-              (set (make-local-variable 'auto-indent-assign-indent-level) 2))
-            (add-hook 'lisp-common-mode-hook #'lisp-auto-indent-mode)))
+            (auto-indent-global-mode)))
 
 (req-package smart-tabs-mode
   :commands (smart-tabs-mode