mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add editorconfig-mode to doom-first-buffer-hook
This commit is contained in:
@ -19,7 +19,7 @@
|
|||||||
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
|
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
|
||||||
;; specify their own formatting rules.
|
;; specify their own formatting rules.
|
||||||
(use-package! editorconfig
|
(use-package! editorconfig
|
||||||
:after-call doom-switch-buffer-hook after-find-file
|
:hook (doom-first-buffer . editorconfig-mode)
|
||||||
:config
|
:config
|
||||||
(when (require 'ws-butler nil t)
|
(when (require 'ws-butler nil t)
|
||||||
(setq editorconfig-trim-whitespaces-mode 'ws-butler-mode))
|
(setq editorconfig-trim-whitespaces-mode 'ws-butler-mode))
|
||||||
@ -44,7 +44,4 @@ extension, try to guess one."
|
|||||||
specified by editorconfig."
|
specified by editorconfig."
|
||||||
(when (or (gethash 'indent_style props)
|
(when (or (gethash 'indent_style props)
|
||||||
(gethash 'indent_size props))
|
(gethash 'indent_size props))
|
||||||
(setq doom-inhibit-indent-detection 'editorconfig))))
|
(setq doom-inhibit-indent-detection 'editorconfig)))))
|
||||||
|
|
||||||
;;
|
|
||||||
(editorconfig-mode +1))
|
|
||||||
|
Reference in New Issue
Block a user