From 92760d91ae5b6679bbeea00c149a1fae46f31317 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 May 2020 14:40:34 -0400 Subject: [PATCH] Add editorconfig-mode to doom-first-buffer-hook --- modules/tools/editorconfig/config.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/tools/editorconfig/config.el b/modules/tools/editorconfig/config.el index 600a9c728..ffb973ddd 100644 --- a/modules/tools/editorconfig/config.el +++ b/modules/tools/editorconfig/config.el @@ -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)))))