Add editorconfig-mode to doom-first-buffer-hook
This commit is contained in:
parent
75b6e11f56
commit
92760d91ae
1 changed files with 2 additions and 5 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue