[Top][All Lists]

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

Re: setting the window background?

From: Miles Bader
Subject: Re: setting the window background?
Date: Thu, 08 Mar 2012 13:09:29 +0900

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.


「寒いね」と話しかければ「寒いね」と答える人のいるあったかさ [俵万智]

reply via email to

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