Function: custom-declare-theme

custom-declare-theme is a byte-compiled function defined in custom.el.gz.

Signature

(custom-declare-theme THEME FEATURE &optional DOC)

Documentation

Like deftheme, but THEME is evaluated as a normal argument.

FEATURE is the feature this theme provides. Normally, this is a symbol created from THEME by custom-make-theme-feature.

Source Code

;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom-declare-theme (theme feature &optional doc &rest _ignored)
  "Like `deftheme', but THEME is evaluated as a normal argument.
FEATURE is the feature this theme provides.  Normally, this is a symbol
created from THEME by `custom-make-theme-feature'."
  (declare (advertised-calling-convention (theme feature &optional doc) "22.1"))
  (unless (custom-theme-name-valid-p theme)
    (error "Custom theme cannot be named %S" theme))
  (unless (memq theme custom-known-themes)
    (push theme custom-known-themes))
  (put theme 'theme-feature feature)
  (when doc (put theme 'theme-documentation doc)))