Rewrite custom-set-face!, add custom-theme-set-face!
custom-set-faces! and custom-theme-set-faces! are now drop-in replacements for custom-set-faces and custom-theme-set-faces with one major distinction: the latter will wait for the theme to be loaded before applying the changes, this allows you to use theme-specific APIs in your face definitions (like doom-color from doom-themes). You no longer have to think about load order when using these macros.
This commit is contained in:
parent
3b17d767b8
commit
0f0a8a5744
2 changed files with 42 additions and 41 deletions
|
@ -130,8 +130,7 @@ 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."
|
||||
(unless no-enable
|
||||
(setq doom-theme theme)
|
||||
(run-hooks 'doom-customize-theme-hook
|
||||
'doom-load-theme-hook)))
|
||||
(run-hooks 'doom-load-theme-hook)))
|
||||
|
||||
(defun doom|protect-fallback-buffer ()
|
||||
"Don't kill the scratch buffer. Meant for `kill-buffer-query-functions'."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue