unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Buffer-specific face overrides
Date: Fri, 27 Aug 2004 09:48:36 -0600	[thread overview]
Message-ID: <412F57D4.6050809@yahoo.com> (raw)
In-Reply-To: ud61cuc20.fsf@laposte.net

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	other threads:[~2004-08-27 15:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.235.1093538166.1998.help-gnu-emacs@gnu.org>
2004-08-26 19:28 ` Buffer-specific face overrides Stefan Monnier
2004-08-26 20:55   ` Paul Moore
2004-08-26 22:00     ` Stefan Monnier
2004-09-04 23:43     ` Miles Bader
2004-09-21  5:09       ` David Combs
2004-08-27 10:09   ` John Robot
2004-08-27 15:48     ` Kevin Rodgers [this message]
2004-08-26 15:45 Paul Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=412F57D4.6050809@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).