From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.help Subject: Re: Different faces / background for read-only buffers Date: Tue, 8 Feb 2011 18:17:47 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016364c7d71fcc6f0049bc2a8d4 X-Trace: dough.gmane.org 1297160860 28712 80.91.229.12 (8 Feb 2011 10:27:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Feb 2011 10:27:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 08 11:27:37 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmknD-000074-Qp for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Feb 2011 11:27:31 +0100 Original-Received: from localhost ([127.0.0.1]:37877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmknC-00023M-Md for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Feb 2011 05:27:30 -0500 Original-Received: from [140.186.70.92] (port=45460 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pmkds-0006Gx-Vc for help-gnu-emacs@gnu.org; Tue, 08 Feb 2011 05:17:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pmkdp-0001pa-VX for help-gnu-emacs@gnu.org; Tue, 08 Feb 2011 05:17:52 -0500 Original-Received: from mail-ew0-f41.google.com ([209.85.215.41]:64002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pmkdp-0001no-O6 for help-gnu-emacs@gnu.org; Tue, 08 Feb 2011 05:17:49 -0500 Original-Received: by ewy27 with SMTP id 27so2647448ewy.0 for ; Tue, 08 Feb 2011 02:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=baa485PpkuqYr0+gWc7zjyohdPl2P8Dz1kmD2ORc29A=; b=QoAPWeYfCCZDGLPKYBB96ivcdHPFffHtPCP7kpqcmmb0wMvgmo9VMQMX6DoMEURsA5 OF8QSH6/wBsu5hbtEgLUDRd7fHio9qOJIplPChXrHKCEfYmntRyX20nsyPyEW7VAF4B8 HrID+XyBpx5W+KTb6KrYeLqk7xKKwmriZVUNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EGJY4Wn+x50h+kaFGPy1zJ9sIpu67bUk9CtT4ZZCUHTodAZz7XnODczpPz+yeCHdVN A8InMs67DVhR8Zxr8siYTkq/6Nf/43zjLh/DfW+HngDQmVrx1Rzd7ldVBVGfD3BVld25 SiRHAa1R7WynQRiJ7r2/+kKQbI8e5L2IstO6A= Original-Received: by 10.14.10.208 with SMTP id 56mr2148936eev.31.1297160267941; Tue, 08 Feb 2011 02:17:47 -0800 (PST) Original-Received: by 10.14.119.11 with HTTP; Tue, 8 Feb 2011 02:17:47 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79024 Archived-At: --0016364c7d71fcc6f0049bc2a8d4 Content-Type: text/plain; charset=ISO-8859-1 Have you looked into buffer-face-mood and view-mode-hook? On Tue, Feb 8, 2011 at 4:01 PM, Gary wrote: > I was sure I had asked this before, but a quick look at the threads > suggests not. > > Is there any way of configuring things such that read-only buffers are > displayed in a different colour scheme? Either by changing the > background or, in the worst case, by using the faces that are used (I'm > particularly interested in buffers using a homegrown mode, but would > prefer a general solution). > > I'm using emacs-nox, if it makes any difference. > > -- > Gary Please do NOT send me 'courtesy' replies off-list. > GNU Emacs 23.2.1 > emacsclient 23.2 > > > > -- Le --0016364c7d71fcc6f0049bc2a8d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Have you looked into buffer-face-mood and view-mode-hook?

On Tue, Feb 8, 2011 at 4:01 PM, Gary <= ;help-gnu-emacs@garydjone= s.name> wrote:
I was sure I had asked this before, but a q= uick look at the threads
suggests not.

Is there any way of configuring things such that read-only buffers are
displayed in a different colour scheme? Either by changing the
background or, in the worst case, by using the faces that are used (I'm=
particularly interested in buffers using a homegrown mode, but would
prefer a general solution).

I'm using emacs-nox, if it makes any difference.

--
Gary =A0 =A0 =A0 =A0Please do NOT send me 'courtesy' replies off-li= st.
GNU Emacs 23.2.1
emacsclient 23.2






--
Le
--0016364c7d71fcc6f0049bc2a8d4--