From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: different background colours in different emacs windows.
Date: Sat, 26 Mar 2011 10:52:03 +1100 [thread overview]
Message-ID: <87sjua92sc.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: mailman.13.1301091024.10079.help-gnu-emacs@gnu.org
"Filippo A. Salustri" <salustri@ryerson.ca> writes:
> Hi,
> I was wondering: can one set the background-color of the active window to be
> different from that of other, inactive windows?
> I've thought that adding to default-frame-alist something like
> (background-color . ("white" "black")) would have worked, but aquamacs just
> goes away (never opens a frame) if I do that.
>
> I'm running aquamacs 2.2 on OSX 10.6.6.
>
> Anyone got any advice?
> Cheers.
> Fil Salustri
I don't think this can be done - at least not easily. I think more recent
versions of emacs do support the ability to set faces on a per buffer
basis, but as far as I know, there is no mechanism to change a face
based on changes in the buffer status i.e. active v inactive. I guess
you would need to find an appropriate hook that runs when the buffer
changes state and then add some code which sets the default background.
Alternatively, jit-lock-register may be worth looking at. I suspect the
problem will be that for efficiency reasons, when emacs is switching
buffers, it will not do any font-locking on the buffer your switching
from. However, this is all just a guess and may be completely wrong.
I can see how such a feature may be useful - maybe worth putting in a
feature request/whishlist item to the emacs devels
Tim
--
tcross (at) rapttech dot com dot au
next parent reply other threads:[~2011-03-25 23:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.13.1301091024.10079.help-gnu-emacs@gnu.org>
2011-03-25 23:52 ` Tim X [this message]
2011-03-25 20:53 different background colours in different emacs windows Filippo A. Salustri
2011-03-25 22:40 ` Peter Dyballa
2011-03-25 23:52 ` Filippo A. Salustri
2011-03-26 10:02 ` Peter Dyballa
2011-03-26 11:22 ` Filippo A. Salustri
2011-03-26 11:34 ` Peter Dyballa
2011-03-26 11:46 ` Filippo A. Salustri
2011-03-26 16:48 ` Peter Dyballa
2011-03-26 23:01 ` Filippo A. Salustri
2011-03-27 5:56 ` Alan E. Davis
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjua92sc.fsf@puma.rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.