Variable: custom-enabled-themes
custom-enabled-themes is a customizable variable defined in
custom.el.gz.
Value
nil
Documentation
List of enabled Custom Themes, highest precedence first.
This list does not include the user theme, which is set by
Customize and always takes precedence over other Custom Themes.
This variable cannot be defined inside a Custom theme; there, it is simply ignored.
Setting this variable through Customize calls enable-theme or
load-theme for each theme in the list.
Source Code
;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defcustom custom-enabled-themes nil
"List of enabled Custom Themes, highest precedence first.
This list does not include the `user' theme, which is set by
Customize and always takes precedence over other Custom Themes.
This variable cannot be defined inside a Custom theme; there, it
is simply ignored.
Setting this variable through Customize calls `enable-theme' or
`load-theme' for each theme in the list."
:group 'customize
:type '(repeat symbol)
:set-after '(custom-theme-directory custom-theme-load-path
custom-safe-themes)
:risky t
:set (lambda (symbol themes)
(let (failures)
(setq themes (delq 'user (delete-dups themes)))
;; Disable all themes not in THEMES.
(dolist (theme (and (boundp symbol)
(symbol-value symbol)))
(unless (memq theme themes)
(disable-theme theme)))
;; Call `enable-theme' or `load-theme' on each of THEMES.
(dolist (theme (reverse themes))
(condition-case nil
(if (custom-theme-p theme)
(enable-theme theme)
(load-theme theme))
(error (push theme failures)
(setq themes (delq theme themes)))))
(enable-theme 'user)
(custom-set-default symbol themes)
(when failures
(message "Failed to enable theme(s): %s"
(mapconcat #'symbol-name failures ", "))))))