Function: custom-theme-visit-theme
custom-theme-visit-theme is an autoloaded, interactive and
byte-compiled function defined in cus-theme.el.gz.
Signature
(custom-theme-visit-theme THEME)
Documentation
Set up a Custom buffer to edit custom theme THEME.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cus-theme.el.gz
;;; Reading and writing
;;;###autoload
(defun custom-theme-visit-theme (theme)
"Set up a Custom buffer to edit custom theme THEME."
(interactive
(list
(intern (completing-read "Find custom theme: "
(mapcar #'symbol-name
(custom-available-themes))))))
(unless (custom-theme-name-valid-p theme)
(error "No valid theme named `%s'" theme))
(cond ((not (eq major-mode 'custom-new-theme-mode))
(customize-create-theme theme))
((y-or-n-p "Discard current changes? ")
(setq custom-theme--save-name theme)
(custom-theme-revert nil t))))