unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: joakim@verona.se
To: Miles Bader <miles@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: setting the window background?
Date: Thu, 08 Mar 2012 11:39:42 +0100	[thread overview]
Message-ID: <m3haxznzpt.fsf@chopper.vpn.verona.se> (raw)
In-Reply-To: <buo399j3f9i.fsf@dhlpc061.dev.necel.com> (Miles Bader's message of "Thu, 08 Mar 2012 13:09:29 +0900")

Miles Bader <miles@gnu.org> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>>> Is it correct that there is a way to set the frame background but no way
>>> to set the window background?
>>
>> Yes.  You don't set the background of a frame, you set the background
>> of the frame's default face.  And faces are local to frames in Emacs.
>
> ... but can be overridden within a buffer, e.g.:
>
>    ;; change background color
>    (setq foo (face-remap-add-relative 'default '(:background "dark green")))
>    ...
>    ;; revert background color to default
>    (face-remap-remove-relative foo)
>
> Unfortunately there's a bug that causes the default face to not work
> quite how one might want in this case -- the space after the last
> position in the buffer is not changed.  However for some uses it may
> be good enough.

Nice! But theres no way to bind this to a window rather than a buffer
right? 


>
> -Miles

-- 
Joakim Verona



  reply	other threads:[~2012-03-08 10:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 11:37 setting the window background? joakim
2012-03-07 12:01 ` Lennart Borgman
2012-03-07 18:09 ` Eli Zaretskii
2012-03-08  4:09   ` Miles Bader
2012-03-08 10:39     ` joakim [this message]
2012-03-09  2:01       ` Miles Bader
2012-03-10 12:22     ` Ivan Andrus
2012-03-10 23:51       ` Miles Bader

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=m3haxznzpt.fsf@chopper.vpn.verona.se \
    --to=joakim@verona.se \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).