mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
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:
@@ -25,7 +25,7 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||
|
||||
(def-package! ivy
|
||||
:init
|
||||
(add-hook 'doom-post-init-hook #'ivy-mode)
|
||||
(add-hook 'doom-init-hook #'ivy-mode)
|
||||
:config
|
||||
(setq ivy-height 12
|
||||
ivy-do-completion-in-region nil
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user