Skip to content

Commit

Permalink
simplify consult-theme, themes should always be loaded
Browse files Browse the repository at this point in the history
sometimes theme are not loaded properly with the old logic
  • Loading branch information
minad committed Dec 5, 2020
1 parent b8068c1 commit f163c1b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions consult.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f163c1b

Please sign in to comment.