From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Re: Distinguish inactive windows Date: Fri, 24 Jun 2011 21:47:24 -0700 Organization: Maplesoft Message-ID: <20110624214724.3f43a308@gauss> References: <20110623175236.0cfa498d@gauss> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1309009422 23895 80.91.229.12 (25 Jun 2011 13:43:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2011 13:43:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alp Aker Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 25 15:43:37 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QaT97-0004TP-Nw for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 15:43:37 +0200 Original-Received: from localhost ([::1]:57150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaT96-0001TI-Ns for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jun 2011 09:43:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaKmN-0006P8-97 for help-gnu-emacs@gnu.org; Sat, 25 Jun 2011 00:47:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QaKmM-000507-9l for help-gnu-emacs@gnu.org; Sat, 25 Jun 2011 00:47:35 -0400 Original-Received: from webmail.maplesoft.com ([199.71.183.105]:26151 helo=ICW8KMAI01.maplesoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaKmM-0004zu-57 for help-gnu-emacs@gnu.org; Sat, 25 Jun 2011 00:47:34 -0400 Original-Received: from gauss (10.10.50.13) by ICW8KMAI01.maplesoft.com (10.10.1.104) with Microsoft SMTP Server (TLS) id 8.1.436.0; Sat, 25 Jun 2011 00:48:09 -0400 In-Reply-To: X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 199.71.183.105 X-Mailman-Approved-At: Sat, 25 Jun 2011 09:41:52 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81437 Archived-At: On Fri, 24 Jun 2011 02:45:41 +0000 (UTC) Alp Aker 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