Only add solarized to color-themes list if color-themes is bound

This commit is contained in:
Lee Hinman 2016-02-21 16:14:55 -07:00
parent 890e5a3dd1
commit c44d42eff7
1 changed files with 5 additions and 4 deletions

View File

@ -30,10 +30,11 @@ Ported to Emacs by Greg Pfeil, http://ethanschoonover.com/solarized."
(color-theme-install (color-theme-install
`(color-theme-solarized () () ,@(solarized-color-definitions)))) `(color-theme-solarized () () ,@(solarized-color-definitions))))
(add-to-list 'color-themes (when (boundp 'color-themes)
`(color-theme-solarized (add-to-list 'color-themes
"Solarized" `(color-theme-solarized
,solarized-description)) "Solarized"
,solarized-description)))
;;;###autoload ;;;###autoload
(defun color-theme-solarized-dark () (defun color-theme-solarized-dark ()