color-theme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Color-theme-devel] Problems when switching themes.


From: Donald Ephraim Curtis
Subject: Re: [Color-theme-devel] Problems when switching themes.
Date: Mon, 2 May 2011 11:20:30 -0500

I figured out what my be part of the problem.

So one thing that is done by default is that the 'hl-line' face inherits from 
'highlight'.  Well, some themes remove this inheritance and set their own 
color.  Then when another theme gets loaded, which relies on the inheritance, 
the theme is off.



In my emacs config I do the following before changing the theme, so that I can 
get back to the defaults:
(fset 'color-theme-snapshot (color-theme-make-snapshot))

But even loading this snapshot does not restore the inheritance, it just sets 
the background to the originally inherited color



Further, I also tried loading a theme which added a "background" to 'hl-line'.  
If i go in and customize face the hl-line, and uncheck the background, and save 
for current session (or for future sessions) the background reappears.  So 
something is intercepting the call and overwriting that.  I assume that's 
color-theme.  Anyways, if I do a (set-face-attribute ...) then I can force the 
hl-line back to the proper inheritance.


So something seems off.




On May 2, 2011, at 11:03, Donald Ephraim Curtis wrote:

> I have a lot of problems with switching themes in emacs and some of the 
> elements not getting updated.  For example, if I try color-theme-solarized 
> then try color-theme-railscasts the highlight line face will not get updated 
> properly.  Even though if I do M-x customize-face -> highlight, the 
> background property is set properly, it doesn't show up properly in my 
> buffers.
> 
> Is this a problem with color-theme or a problem with the themes themselves?  
> Because even some of the builtin themes do this.  If I do color-theme-gnome2 
> then do color-theme-blipblop things are not as they should be (noticably the 
> fringe color is off and the highlight line color is off.
> 
> -Donald




reply via email to

[Prev in Thread] Current Thread [Next in Thread]