From f163c1b477142ed37f85004022dc9e2dc6ca4d4f Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Sat, 5 Dec 2020 18:43:41 +0100 Subject: [PATCH] simplify consult-theme, themes should always be loaded sometimes theme are not loaded properly with the old logic --- consult.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/consult.el b/consult.el index c482b60e..fb61be71 100644 --- a/consult.el +++ b/consult.el @@ -781,10 +781,7 @@ preview if `consult-preview-mode' is enabled." (symbol-name (car custom-enabled-themes))))))) (unless (equal theme (car custom-enabled-themes)) (mapc #'disable-theme custom-enabled-themes) - (when theme - (if (custom-theme-p theme) - (enable-theme theme) - (load-theme theme :no-confirm))))) + (when theme (load-theme theme :no-confirm)))) ;; TODO consult--buffer-selectrum performs dynamic computation of the candidate set. ;; this is currently not supported by completing-read+selectrum.