Next: , Up: Custom Themes   [Index]


4.3.4.1 Custom Theme Variables

Variable: custom-theme-directory

Variable defined in custom.el.

Default user directory for storing custom theme files. It’s current value is $HOME/.emacs.d/themes.

The command customize-create-theme writes theme files into this directory. By default, Emacs searches for custom themes in this directory first. See custom-theme-load-path, next.

Variable: custom-theme-load-path

Variable defined in custom.el. This variable is designed for use in lisp code (including external packages). For manual user customizations, use custom-theme-directory instead.

List of directories to search for custom theme files. Emacs searches for theme files in the specified order. Each element in the list should be one of:

  • ’custom-theme-directory (meaning use its value)
  • ’t (meaning value of the built-in theme directory, $data-directory/themes/)
  • a string naming a directory
Variable: custom-safe-themes

Variable defined in custom.el

Variable holding list of themes (actually their SHA-256 has) that are considerd safe to load, or the value ‘t’, meaning consider all themes as safe. The symbol ’default means to consider all themes in $data-directory/themes as safe.

Variable: custom-enabled-themes

Variable defined in custom.el.

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.

Setting this variable through ‘Customize’ calls enable-theme or load-theme for each theme in the list.