Merge pull request #187 from dakrone/fix-unbound-color-themes

Only add solarized to color-themes list if color-themes is bound
This commit is contained in:
Greg Pfeil 2017-10-24 09:25:44 -06:00 committed by GitHub
commit f3ca8902ea
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-solarized () () ,@(solarized-color-definitions))))
(add-to-list 'color-themes
`(color-theme-solarized
"Solarized"
,solarized-description))
(when (boundp 'color-themes)
(add-to-list 'color-themes
`(color-theme-solarized
"Solarized"
,solarized-description)))
;;;###autoload
(defun color-theme-solarized-dark ()