From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Highlighting current window Date: Sat, 30 Jun 2012 11:23:50 -0700 Message-ID: <7EEB8635C8F742348EFD06F2C7514F0D@us.oracle.com> References: <87hattxfay.wl%f@mazzo.li> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341080658 26671 80.91.229.3 (30 Jun 2012 18:24:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 18:24:18 +0000 (UTC) To: "'Francesco Mazzoli'" , "'help-gnu-emacs'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 20:24:17 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sl2L7-00049t-RI for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 20:24:13 +0200 Original-Received: from localhost ([::1]:48975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl2L7-0006jB-H3 for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 14:24:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl2L2-0006j6-7M for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 14:24:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sl2Kz-0003cu-Jh for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 14:24:07 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:30474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sl2Kz-0003cD-D6 for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 14:24:05 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5UIO1kk004618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 30 Jun 2012 18:24:02 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5UINxQY022129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 30 Jun 2012 18:24:01 GMT Original-Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5UINxc3004937; Sat, 30 Jun 2012 13:23:59 -0500 Original-Received: from dradamslap1 (/10.159.175.105) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 30 Jun 2012 11:23:59 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87hattxfay.wl%f@mazzo.li> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: Ac1W0i1+8WqZo4awTz2HPaq85E84NwAGxBww X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:85589 Archived-At: > I was looking for ways to make the focused window clearer. The best > way would probably a slightly lighter background. > > However, I couldn't find any hooks to easily do that. I was expecting > something along the lines of `window-leave-hook' and > `window-focus-hook' but I couldn't find anything similar. > > The best suggestion that the IRC people came up with is to use > `post-command-hook' and match `switch-buffer', but that sounds a bit > ugly. Is there a better way? Typically folks just look at the mode line to tell which window is selected. Can you get by by customizing faces `mode-line' and `mode-line-inactive', making the former something that stands out for you?