From 5256360f3e1cab6435c7a4f3d7c73358b098465b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 2 Jul 2014 18:38:06 +0100 Subject: Emacs: Fix incorrect lisp auto-indentation --- tag-emacs/emacs.d/init.el | 9 ++++----- 1 file 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 -- cgit 1.4.1