summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-07-02 18:38:06 +0100
committerAlan Pearce2014-07-02 18:38:06 +0100
commit5256360f3e1cab6435c7a4f3d7c73358b098465b (patch)
tree67c92de6f61bbe3265ace78b94d471615ae81a4b /tag-emacs
parent50aeb46604892d696cba76e0c28ec532bac92361 (diff)
downloadnixfiles-5256360f3e1cab6435c7a4f3d7c73358b098465b.tar.lz
nixfiles-5256360f3e1cab6435c7a4f3d7c73358b098465b.tar.zst
nixfiles-5256360f3e1cab6435c7a4f3d7c73358b098465b.zip
Emacs: Fix incorrect lisp auto-indentation
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 5f5d92a2..5c717556 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -363,12 +363,11 @@
                   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