Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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: emacs23 ansi-term colors

But now it looks like this: enter image description here

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?

like image 232
avendael Avatar asked Aug 03 '12 15:08

avendael


1 Answers

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"])
like image 73
Nicolas Dudebout Avatar answered Sep 28 '22 07:09

Nicolas Dudebout