I am on Mac 10.9.5 using Emacs 24.4
Following the instruction in here: https://github.com/sellout/emacs-color-theme-solarized , I downloaded the emacs-color-theme-solarized
directory and added it to my Emacs custom-theme-load-path. That directory (Emacs
was installed with Macports
) looks like this :
ls /opt/local/share/emacs/24.4/etc/themes/
adwaita-theme.el light-blue-theme.el tsdh-dark-theme.el
deeper-blue-theme.el manoj-dark-theme.el tsdh-light-theme.el
dichromacy-theme.el misterioso-theme.el wheatgrass-theme.el
emacs-color-theme-solarized tango-dark-theme.el whiteboard-theme.el
leuven-theme.el tango-theme.el wombat-theme.el
where emacs-color-theme-solarized
is the directory. Then I added (load-theme 'solarized-dark t)
to my .emacs
file and when I re-initiate emacs
I get the error: Unable to find theme file for 'solarized-dark
.
I have tried to move all file within the emacs-color-theme-solarized
directory directly into the /opt/local/share/emacs/24.4/etc/themes/
directory, so that:
ls /opt/local/share/emacs/24.4/etc/themes/
LICENSE leuven-theme.el tango-dark-theme.el
README.md light-blue-theme.el tango-theme.el
adwaita-theme.el makepkg.sh tsdh-dark-theme.el
color-theme-solarized-pkg.el manoj-dark-theme.el tsdh-light-theme.el
color-theme-solarized.el misterioso-theme.el wheatgrass-theme.el
deeper-blue-theme.el solarized-dark-theme.el whiteboard-theme.el
dichromacy-theme.el solarized-definitions.el wombat-theme.el
emacs-color-theme-solarized solarized-light-theme.el
follow the same process and obtained the same result. Finally, I read here: Emacs 24 Package System Initialization Problems that a possible solution is adding the following two lines at the beginning of my .emacs
file:
(setq package-enable-at-startup nil)
(package-initialize)
So I did and obtained the same result. Even loading the theme manually: load-theme
and then solarized-dark
is not solving the issue. It seems like any changes done to that directory are ignored by .emacs
.
By the way, I also tried to add (add-to-list 'load-path " /opt/local/share/emacs/24.4/etc/themes")
to my .emacs
file as well as (add-to-list 'load-path " ~/emacs.d/themes")
, and it was, also, unsuccessful.
In case is of any use, any of the themes that come with the instalation, e.g (load-theme 'tsdh-dark t)
, work perfectly
Any ideas of how to solve this issue for the solarized theme?
thanks and happy new year!