Rewrite switch-{buffer,window} hooks
+ Add doom-switch-frame-hook + Replace doom-{enter,exit}-{buffer,window}-hook with doom-switch-{buffer,window}-hook + New switch-buffer hooks run on buffer-list-update-hook rather than in select-window advice. + Blank our buffer-list-update-hook in some places to reduce how many times it gets triggered.
This commit is contained in:
parent
8f2fb07948
commit
a05b1877be
9 changed files with 93 additions and 104 deletions
|
@ -18,8 +18,7 @@
|
|||
;; Handles whitespace (tabs/spaces) settings externally. This way projects can
|
||||
;; specify their own formatting rules.
|
||||
(def-package! editorconfig
|
||||
:defer 3
|
||||
:after-call (doom-enter-buffer-hook after-find-file)
|
||||
:after-call (doom-switch-buffer-hook after-find-file)
|
||||
:config
|
||||
;; Register missing indent variables
|
||||
(unless (assq 'mips-mode editorconfig-indentation-alist)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue