Add editorconfig-mode to doom-first-buffer-hook

This commit is contained in:
Henrik Lissner 2020-05-28 14:40:34 -04:00
parent 75b6e11f56
commit 92760d91ae
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -19,7 +19,7 @@
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
;; specify their own formatting rules.
(use-package! editorconfig
:after-call doom-switch-buffer-hook after-find-file
:hook (doom-first-buffer . editorconfig-mode)
:config
(when (require 'ws-butler nil t)
(setq editorconfig-trim-whitespaces-mode 'ws-butler-mode))
@ -44,7 +44,4 @@ extension, try to guess one."
specified by editorconfig."
(when (or (gethash 'indent_style props)
(gethash 'indent_size props))
(setq doom-inhibit-indent-detection 'editorconfig))))
;;
(editorconfig-mode +1))
(setq doom-inhibit-indent-detection 'editorconfig)))))