From 4299da1eb898b3893027d6b04ca7416f02902fb1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 25 Jul 2019 01:50:33 +0200 Subject: [PATCH] :after -> :after-while for load-theme advice The advice shouldn't run if load-theme doesn't return non-nil (indicating it succeeded). --- 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 fdacfd397..83a8406a8 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -622,7 +622,7 @@ Fonts are specified by `doom-font', `doom-variable-pitch-font', (defadvice! doom--run-load-theme-hooks-a (theme &optional _no-confirm no-enable) "Set up `doom-load-theme-hook' to run after `load-theme' is called." - :after #'load-theme + :after-while #'load-theme (unless no-enable (setq doom-theme theme) (run-hooks 'doom-load-theme-hook)))