From 4397f0123fe11d04b95b5ee02763bfb4a3b57f87 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 10 May 2021 16:05:19 -0400 Subject: [PATCH] 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 --- core/core-ui.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-ui.el b/core/core-ui.el index cae00c4f3..256320eb4 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -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))))))