From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sean O'Rourke Newsgroups: gmane.emacs.devel Subject: Re: Different buffer background depending on if window active Date: Mon, 18 May 2009 18:13:11 -0700 Message-ID: References: <7b501d5c0905171419y12d4ff28n8bec12cdcedb93a5@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1242695632 24147 80.91.229.12 (19 May 2009 01:13:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 01:13:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 19 03:13:45 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M6Dto-0004wp-P4 for ged-emacs-devel@m.gmane.org; Tue, 19 May 2009 03:13:45 +0200 Original-Received: from localhost ([127.0.0.1]:41364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Dtn-000269-U5 for ged-emacs-devel@m.gmane.org; Mon, 18 May 2009 21:13:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6Dti-000252-1r for emacs-devel@gnu.org; Mon, 18 May 2009 21:13:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6Dtc-00023z-Hi for emacs-devel@gnu.org; Mon, 18 May 2009 21:13:37 -0400 Original-Received: from [199.232.76.173] (port=35743 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6Dtc-00023u-DG for emacs-devel@gnu.org; Mon, 18 May 2009 21:13:32 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:37012 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6Dtb-0002yh-Rw for emacs-devel@gnu.org; Mon, 18 May 2009 21:13:32 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M6DtV-0004bw-KQ for emacs-devel@gnu.org; Tue, 19 May 2009 01:13:25 +0000 Original-Received: from cpe-76-174-24-253.socal.res.rr.com ([76.174.24.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2009 01:13:25 +0000 Original-Received: from seano by cpe-76-174-24-253.socal.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2009 01:13:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpe-76-174-24-253.socal.res.rr.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (darwin) Cancel-Lock: sha1:5Ap/MLaNBA9lc+Htda28WfRk1+A= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110975 Archived-At: Lennart Borgman writes: > On Sun, May 17, 2009 at 11:19 PM, Deniz Dogan wrote: >> I've always wanted to have the currently active window in Emacs have a >> different background color to see which one I'm currently "in" easier. >>  One could imagine this as a part of a much larger change to have a >> whole set of different parameters depending on the currently active >> window. >> >> Has this feature been requested before?  Would it be cumbersome to >> implement?  Is it desirable at all?  Can this be hacked together using >> simple Emacs Lisp? > > An alternative that you can use is to customize the faces mode-line > and mode-line-inactive. At least on Cocoa/NextStep, you can set the frame parameter `alpha' to a two-element list to have different alpha channels on active and inactive frames. I have (frame-parameter (selected-frame) 'alpha) ;; => (100 85) which makes my other frame(s) slightly transparent. I don't remember where I learned this, and have no idea where it is documented. /s