help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: different colors for different windows


From: Miles Bader
Subject: Re: different colors for different windows
Date: 21 Mar 2001 15:16:08 +0900

"Stefan Monnier <foo@acm.com>" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> 
writes:
> No, the bg/fg colors (as well as face settings) are per-frame settings,
> so you can't have them different for two windows in the same frame.
> 
> It's too bad really.  It should really be possible to set them on a
> per-buffer and per-window basis.

How about adding a variable with an alist that can be used to re-map the
various `fixed faces' (default, mode-line, etc).

That way, a mode could define a local version of the variable to
override the defaults, and the current interfaces wouldn't have to
change.  It would also allow the user to customize the mode-specific
faces in the usual way.

E.g.:

 (setq face-override-alist
   '((default . foo-default)
     (mode-line . foo-mode-line)))

Would do the obvious thing.

A question that comes to mind with such an implementation is: what would
the meaning of :inherited face names in the presence of an override?
This seems significant because it would be nice to allow a
mode-specific override to :inherit the default version of the face, but
unrelated faces that :inherit something like the `mode-line' face might
want to see the overridden version instead...

-Miles
-- 
Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche



reply via email to

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