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:
parent
cf7779138a
commit
853ad98ae9
2 changed files with 5 additions and 3 deletions
|
@ -152,6 +152,11 @@ fundamental-mode) for performance sake."
|
|||
:config
|
||||
(add-hook 'doom-init-hook #'editorconfig-mode)
|
||||
|
||||
;; Editorconfig makes indentation weird in Lisp modes, so we disable it. It
|
||||
;; still applies other project settings (e.g. tabs vs spaces) though.
|
||||
(set! :editorconfig :remove 'emacs-lisp-mode)
|
||||
(set! :editorconfig :remove 'lisp-mode)
|
||||
|
||||
(defun doom|editorconfig-whitespace-mode-maybe (&rest _)
|
||||
"Show whitespace-mode when file uses TABS (ew)."
|
||||
(if indent-tabs-mode (whitespace-mode +1)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue