mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add internal doom-customize-theme-hook
Ensures custom-set-faces! take effect before any load-theme hooks.
This commit is contained in:
@ -477,7 +477,7 @@ Each face spec must be in the format of (FACE-NAME [:ATTRIBUTE VALUE]...).
|
|||||||
Unlike `custom-set-faces', which destructively changes a face's spec, this one
|
Unlike `custom-set-faces', which destructively changes a face's spec, this one
|
||||||
adjusts pre-existing ones."
|
adjusts pre-existing ones."
|
||||||
`(add-hook
|
`(add-hook
|
||||||
'doom-load-theme-hook
|
'doom-customize-theme-hook
|
||||||
(let ((fn (make-symbol "doom|init-custom-faces")))
|
(let ((fn (make-symbol "doom|init-custom-faces")))
|
||||||
(fset fn
|
(fset fn
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
@ -130,7 +130,8 @@ behavior). Do not set this directly, this is let-bound in `doom|init-theme'.")
|
|||||||
"Set up `doom-load-theme-hook' to run after `load-theme' is called."
|
"Set up `doom-load-theme-hook' to run after `load-theme' is called."
|
||||||
(unless no-enable
|
(unless no-enable
|
||||||
(setq doom-theme theme)
|
(setq doom-theme theme)
|
||||||
(run-hooks 'doom-load-theme-hook)))
|
(run-hooks 'doom-customize-theme-hook
|
||||||
|
'doom-load-theme-hook)))
|
||||||
|
|
||||||
(defun doom|protect-fallback-buffer ()
|
(defun doom|protect-fallback-buffer ()
|
||||||
"Don't kill the scratch buffer. Meant for `kill-buffer-query-functions'."
|
"Don't kill the scratch buffer. Meant for `kill-buffer-query-functions'."
|
||||||
|
Reference in New Issue
Block a user