mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix custom{,theme-}set-faces!, again
custom-theme-set-faces! depends on doom-theme's previous-theme property being non-nil to determine if the theme has been set (and if so, apply its changes immediately), but at startup custom-enabled-themes is empty, so it was never non-nil. Fixes #5009 Fixes #5000
This commit is contained in:
@ -629,7 +629,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||
(prog1 (funcall orig-fn theme no-confirm no-enable)
|
||||
(when (and (not no-enable) (custom-theme-enabled-p theme))
|
||||
(setq doom-theme theme)
|
||||
(put 'doom-theme 'previous-themes last-themes)
|
||||
(put 'doom-theme 'previous-themes (or last-themes 'none))
|
||||
(doom-run-hooks 'doom-load-theme-hook))))))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user