aboutsummaryrefslogtreecommitdiff
path: root/modules/ui-theme.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ui-theme.el')
-rw-r--r--modules/ui-theme.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/ui-theme.el b/modules/ui-theme.el
index eb4efd9b5..499e71a49 100644
--- a/modules/ui-theme.el
+++ b/modules/ui-theme.el
@@ -37,13 +37,17 @@
;; ------------------------------- Switch Themes -------------------------------
;; loads themes in completing read, then persists via the functions below
+(require 'system-lib)
+
(defun cj/switch-themes ()
"Function to switch themes and save chosen theme name for persistence.
Unloads any other applied themes before applying the chosen theme."
(interactive)
(let ((chosentheme (completing-read "Load custom theme: "
- (mapcar #'symbol-name
- (custom-available-themes)))))
+ (cj/completion-table
+ 'theme
+ (mapcar #'symbol-name
+ (custom-available-themes))))))
(cj/theme-disable-all)
(cj/theme-load-name chosentheme))
(cj/save-theme-to-file))