Pregunta

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?

¿Fue útil?

Solución

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"])

Otros consejos

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) )
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top