Fix :after-call deferred packages not loading
If you open emacs with a file (emacs file.txt), the file is switched to before the switch-buffer hooks are set up. However, many core packages are hooked to those switch-buffer hooks (to load when they're first triggered). They miss the boat and don't get loaded. These packages are now hooked onto after-find-file as well (and immediately), which will fire when a file is opened, before or after initialization. Fixes #680
This commit is contained in:
parent
69c6e0b8fb
commit
36171f5b33
3 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
;; specify their own formatting rules.
|
||||
(def-package! editorconfig
|
||||
:defer 2
|
||||
:after-call doom-before-switch-buffer
|
||||
:after-call (doom-before-switch-buffer after-find-file)
|
||||
:config
|
||||
;; Register missing indent variables
|
||||
(setq editorconfig-indentation-alist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue