Why is my Emacs Theme change Incomplete - emacs

I'm trying to change my Emacs theme. I'm using iTerm2, and I wonder if that is the culprit of this problem. The theme I wanted to try out is Zenburn, however, after configuring ~/.emacs file, my Emacs still looks very different to the screenshot took here: http://emacsthemes.caisah.info/zenburn-theme/
Mine looks like this:
The background color did not change, and the line separates line number and actual code is too obvious. Any reason why this would happen and how to fully apply Zenburn theme?

What appears to me is your background looks like that of Solarized dark theme. It may have happened that you have initialized that theme earlier. It might be the case that you have compiled that .emacs file to byte code but your newer change is not. Open .emacs in Emacs editor and try M-x eval-buffer. Your configuration looks fine to me. If that works then either you will need to remove .emacs.elc or do a byte compilation for your .emacs.

Related

Emacs 24 client not loading color theme properly

I want to use the color theme solarized-light. It works just fine if I do (load-theme 'solarized-light t), however I am having issues with having it load automatically.
If I simply add (load-theme 'solarized-light t) to my .emacs, the color theme won't load properly. Some of the colors are applied but others aren't, I assume this is because it's not running in a GUI so it assumes the terminal can't support the colors or something.
Logically, I tried putting the call to load the theme in the after-make-frame-functions variable. I thought that if it only tries to load the theme after I'm already in a GUI, then it should work right?
It doesn't. When I create the first frame the same thing happens with the terminal and the colors aren't loaded properly. However, if I make another frame while I already have one open then it works properly.
Is there any way to apply the theme properly when I make the first frame, or even before that if possible?
I'm on Arch Linux running Emacs 24.3.1 as a daemon. In case this behavior is tied to the window manager, I've tried it in both StumpWM and Openbox and it doesn't work in either.
Edit:
As a temporary workaround I have made a command in my .stumpwmrc that runs the shell command emacsclient --eval "(load-theme 'solarized-light t)" after making the frame. This works but it doesn't answer my original question (nor is it likely to help people with other window managers).
add
(package-initialize)
(setq package-enable-at-startup nil)
to the top of your .emacs file. then set the them from M-x customize-groups: themes, select theme in the menu and save to your .emacs file, also disable foreground and background from default faces group. restart emacs or M-x eval-buffers to check.

emacs 24 ansi-term seems to ignore theme colors

I have upgraded to Emacs 24 from Emacs 23 on OSX using brew. Right now, I'm updating my .emacs to use the new stuff from emacs 24 esp. the new package manager and the built-in color themes. I installed the zenburn theme from marmalade (I think), deleted the old color-theme extension from my extensions directory, and removed my configuration which adds the old color-theme extension to the load path.
One thing I have noticed is that ansi-term colors does not follow the color theme. In emacs 23, my ansi-term looked like this:
But now it looks like this:
I have checked ansi-color-names-vector and ansi-color-map. Both of them reports colors from zenburn. Switching themes still do not change the ansi-term colors, so I think this is not a theme specific problem.
Any ideas how I can fix this problem?
The variable ansi-term-color-vector was not set in the new version of the zenburn-theme. I submitted a pull request to fix it.
In the mean time just use the following line:
(setq ansi-term-color-vector [unspecified "#3f3f3f" "#cc9393" "#7f9f7f" "#f0dfaf" "#8cd0d3" "#dc8cc3" "#93e0e3" "#dcdccc"])
The external color-theme requires no configuration to work well. Just save your color theme using color-theme-print, and insert its output FUNCTION in .emacs, and this one:
(and
(eq window-system 'x)
(color-theme-FUNCTION) )

Where can I get a "Light Table" theme for Emacs 24?

I really like the Light Table color scheme but despite lots of Googling I can't seem to find an Emacs theme. I've made an attempt to recreate it but surely someone else has done this already.
It's a dark theme that looks like:
There's a load more example images on the Kickstarter page.
I made a theme based on the LightTable color scheme, I've just released it as a gist.
https://gist.github.com/3027622
FYI I'm publishing several new themes for Emacs24. There's a couple of other dark themes at https://emacsfodder.github.io/
Update
Here's a view of the font-lock (i.e. language generics, which are used by major modes to provide syntax highlighting.) definition with rainbow-mode.
Note:
In Emacs Lisp mode (CommonLisp & EmacsLisp are the closest things I know to Clojure.)
We can see that even local function usage isn't added to syntax highlighting:
(Having done a small check with clojure-mode, I can see the same thing going on there, defn's show their function name highlighted, but usage is in the default face color.)
For completeness it's probably worth adding this new answer here. There is now a LightTable theme for Emacs. It's called Noctilux:
https://github.com/stafu/noctilux-theme
Lighttable theme for Doom Emacs

Is there a guide to changing emacs colorscheme?

In the terminal when I try to use emacs the colors are not good, most of the times I can't properly see the text.
In vim I know I can change the colorscheme with :colo <colorscheme_name>
Is there something similar in emacs?
A tutorial on the proper steps to change the colors would be appreciated.
I'm not sure of tutorial, but off top of my head, what you probably will want to do is: M-x customize then navigate to the section called "Faces" - you'll get a bunch of settings related to the color scheme and other font-related settings.
But Emacs has tons of customizations related to how text is displayed. I'm using this http://www.nongnu.org/color-theme/ but you can find a lot of info here: http://emacswiki.org/emacs/ColorTheme (emacswiki is basically the resource to be consulted first when you have any Emacs-related problem).
Obviously, you can do that in your .emacs file by adding different settings, but I'd suggest to use what's generated by the changed settings first, see how it works and then add on top of that yourself (once you modify settings from the customization buffer, it will save the changes into .emacs file - you can then open it and see what exactly did it do).
M-x load-theme
then use arrows to select a theme.
Adding here for easy reference ( #deong shared this answer via comment under the accepted answer).

slate like theme for emacs?

Is there any themes for emacs which looks like this one?
http://www.lnbogen.com/VisualStudioNet2005Colors.aspx
Might be worth having a look at package color-theme, although I can't see anything that matches precisely what you want on the sample page.
See here for screenshots (links at the bottom of the page), and here for the code.
Looks like a variation of the zenburn theme, which is also available for emacs.
It easy to make your own color theme, for instance you can see in my init.el file (search for global-font-lock-mode to get to the interresting part) how easily it can be done.