Fix editorconfig indent-policing in Lisp modes

Editorconfig in Lisp enforces lisp-indent-offset too strictly, ruining
its adaptive indentation. We don't want to disable it complete in those
modes however. In all other respects (controlling spaces vs tabs,
charset, max_line_length, etc) editorconfig is great.
This commit is contained in:
Henrik Lissner 2017-06-15 14:37:16 +02:00
parent cf7779138a
commit 853ad98ae9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 3 deletions

View file

@ -16,9 +16,6 @@
("add-hook" "remove-hook")
("add-hook!" "remove-hook!")))
;; Don't affect lisp indentation (only `tab-width')
(set! :editorconfig :remove 'emacs-lisp-mode)
(defun +emacs-lisp|hook ()
(add-hook 'before-save-hook #'delete-trailing-whitespace nil t)