[Top][All Lists]

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

Re: setting the window background?

From: joakim
Subject: Re: setting the window background?
Date: Thu, 08 Mar 2012 11:39:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Miles Bader <address@hidden> writes:

> Eli Zaretskii <address@hidden> 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

> -Miles

Joakim Verona

reply via email to

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