Run doom-post-init-hook as late as possible
Possibly fixes recursive load errors, to do with kill-buffer-query-functions and buffer-predicate autoloads loading in a weird way on Emacs 25 (and especially on MacOS, for some reason).
This commit is contained in:
parent
ee73d6c9af
commit
da7f9019d1
2 changed files with 9 additions and 3 deletions
|
@ -56,7 +56,13 @@ non-nil."
|
|||
(load! "config" (plist-get plist :path) t)))
|
||||
doom-modules)
|
||||
(load! "config" doom-private-dir t)
|
||||
(run-hook-wrapped 'doom-post-init-hook #'doom-try-run-hook))))
|
||||
(if after-init-time
|
||||
(doom|run-post-init-hook)
|
||||
(add-hook 'emacs-startup-hook #'doom|run-post-init-hook)))))
|
||||
|
||||
(defun doom|run-post-init-hook ()
|
||||
"Run `doom-post-init-hook'. That's all."
|
||||
(run-hook-wrapped 'doom-post-init-hook #'doom-try-run-hook))
|
||||
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue