From 6b7db74bd3c58022073d69747e1fc9b2155c07b8 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 themes 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.