sellout / emacs-color-theme-solarized

Emacs highlighting using Ethan Schoonover’s Solarized color scheme
http://ethanschoonover.com/solarized
MIT License
1.15k stars 201 forks source link

Cannot install from melpa #201

Open spapanik opened 7 years ago

spapanik commented 7 years ago

Manual installation of the theme works, but if I try to install the theme from Melpa (with (use-package color-theme-solarized)) I get the following error:

Warning (initialization): An error occurred while loading '~/.emacs.d/init.el':

Symbol's value as variable is void: color-themes

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the '--debug-init' option to view a complete error backtrace.

I am on emacs 25.2

NicholasTD07 commented 7 years ago

I ran into the same problem and I thought it wasn't installed. But it's actually installed and if you do M-x load-theme, you can find the theme. Not sure how to solve this once and for all yet.

NicholasTD07 commented 7 years ago

I have a workaround to silence the warning by defining color-themes as a list (setq color-themes '()) before you load the package. For example, I use use-package to manage all my packages and I add this line into my :init.

(use-package color-theme-solarized
  :init (setq color-themes '())) ; Hack to silence compiler warning
ericbn commented 7 years ago

Had the same issue. Looks like we should have color-theme installed.