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

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

Re: Buffer-specific face overrides


From: Kevin Rodgers
Subject: Re: Buffer-specific face overrides
Date: Fri, 27 Aug 2004 09:48:36 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

John Robot wrote:
> And what about the fact of having another background color for
> some buffers, by default?
>
> For example : being able to say that the *shell* buffers will
> always be with a dark background, or stuff like that?

Since the set-face-ATTRIBUTE user function and the set-face-attribute
utility function accept an optional FRAME argument, you can do so on a
frame-by-frame basis.  Not to mention, background-color is a frame
parameter, which is frame-specific by definition.

So if you're willing to run your *shell* buffer in your own frame,
voila:

(setq special-display-buffer-names
      (cons "*shell*" special-display-buffer-names))

(let ((special-display-frame-alist
       (cons '(background-color . "dark") special-display-frame-alist)))
  (shell))

--
Kevin Rodgers



reply via email to

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