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 PROPERTIES)

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. The optional argument DOC may contain the documentation for THEME. The optional argument PROPERTIES may contain a property list of attributes associated with THEME.

Source Code

;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom-declare-theme (theme feature &optional doc properties)
  "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'.  The
optional argument DOC may contain the documentation for THEME.
The optional argument PROPERTIES may contain a property list of
attributes associated with THEME."
  (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))
  (when properties
    (put theme 'theme-properties properties)))