From: Joe Riel <jriel@maplesoft.com>
To: Alp Aker <alp.tekin.aker@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Distinguish inactive windows
Date: Fri, 24 Jun 2011 21:47:24 -0700 [thread overview]
Message-ID: <20110624214724.3f43a308@gauss> (raw)
In-Reply-To: <loom.20110624T041310-302@post.gmane.org>
On Fri, 24 Jun 2011 02:45:41 +0000 (UTC)
Alp Aker <alp.tekin.aker@gmail.com> wrote:
> > How can the selected window be visually distinguished from the other
> > windows in its frame? I'd like to, say, set mode-line background
> > of the selected window to a particular color.
>
> Is specifically a unique *window* whose mode-line you want to
> distinguish, or would it suffice to change the mode-line for all
> windows displaying a particular *buffer*? If the former, you're out
> of luck; there's no way (that I'm aware of) to do it. If the latter,
> you can use the variable `mode-line-format', which is buffer-local
> and which allows you to specify a face.
It only has to be unique to a buffer. Here's a simpler variant
on your scheme that does precisely what I want:
(make-local-variable 'face-remapping-alist)
(setq face-remapping-alist
'((mode-line-inactive :foreground "black" :background "yellow")))
Thanks again for the ideas, they helped.
Joe Riel
next prev parent reply other threads:[~2011-06-25 4:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-24 0:52 Distinguish inactive windows Joe Riel
2011-06-24 2:45 ` Alp Aker
2011-06-25 4:47 ` Joe Riel [this message]
2011-06-25 16:00 ` Alp Aker
2011-06-24 2:51 ` Alp Aker
2011-06-24 5:38 ` Joe Riel
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=20110624214724.3f43a308@gauss \
--to=jriel@maplesoft.com \
--cc=alp.tekin.aker@gmail.com \
--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.
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).