Narrow down the purpose of init & post-init hooks
Essential hooks should be added to doom-init-hook. Non-essential and extra hooks should be added to doom-psot-init-hook.
This commit is contained in:
parent
c0680e6fa3
commit
25619908a2
5 changed files with 7 additions and 6 deletions
|
@ -40,7 +40,7 @@ renamed.")
|
|||
persp-auto-save-opt (if noninteractive 0 1))
|
||||
|
||||
;; Bootstrap
|
||||
(add-hook 'doom-post-init-hook #'+workspaces|init)
|
||||
(add-hook 'doom-init-hook #'+workspaces|init)
|
||||
(add-hook 'after-make-frame-functions #'+workspaces|init)
|
||||
(add-hook 'persp-mode-hook #'+workspaces|init-persp-mode)
|
||||
;; only auto-save when real buffers are present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue