From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: buffer name face Date: Sat, 19 Dec 2009 21:33:07 +0100 Message-ID: References: <87ljgyivo2.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261254898 15678 80.91.229.12 (19 Dec 2009 20:34:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Dec 2009 20:34:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sean Sieger Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 19 21:34:51 2009 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.50) id 1NM60H-0008Nq-C8 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Dec 2009 21:34:49 +0100 Original-Received: from localhost ([127.0.0.1]:38851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NM5zx-0004oh-QK for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Dec 2009 15:33:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NM5za-0004lM-LB for help-gnu-emacs@gnu.org; Sat, 19 Dec 2009 15:33:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NM5zV-0004fW-Dy for help-gnu-emacs@gnu.org; Sat, 19 Dec 2009 15:33:34 -0500 Original-Received: from [199.232.76.173] (port=33558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NM5zV-0004fI-7X for help-gnu-emacs@gnu.org; Sat, 19 Dec 2009 15:33:29 -0500 Original-Received: from mail-fx0-f225.google.com ([209.85.220.225]:38828) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NM5zU-000699-T1 for help-gnu-emacs@gnu.org; Sat, 19 Dec 2009 15:33:29 -0500 Original-Received: by fxm25 with SMTP id 25so3233593fxm.26 for ; Sat, 19 Dec 2009 12:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=2s8nKsx/bP2Ik6wDLULJe2h4Rpk6Uxn4NzbopVVdtKI=; b=UagRPAHg3PUByXAWIK07RwZha8j8lqgFsTr9/LXvcMQ+OtwFAgxJ38riNunk1ZcP6L NxcBQDUOXJHsfpXECvx0g8sWHKSH8KjQBAb3QRmlQWFg+9ojPqapRkRnT1pprDTSTXih wbL3/gp438a7wAMQezi70OvC9E+gAq5k0Mjww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=iPFiCBKunqJH9oa9TqthmexpdICT7p9g02097QWW3J/36uK0YCAFrCix5ctU+o2MHp rjDg55DImZV2X5IBUxxccjE76GDJKKpE2GT+9/wKJTcoVZiBTMyd5OOOpjPUJzeJST/Y sXOsHUwfo1ll5UmOcPsagGUqwy7BGFNF6OQIc= Original-Received: by 10.239.182.161 with SMTP id q33mr606150hbg.41.1261254807136; Sat, 19 Dec 2009 12:33:27 -0800 (PST) In-Reply-To: <87ljgyivo2.fsf@gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:70755 Archived-At: > How do you change the color of the buffer name in the mode line? =C2=A0In= tty > on Ubuntu 9.10, it's a pale grey that I can't really see. The buffer name is controlled by the buffer-local variable mode-line-buffer-identification. You can set it directly, but if you want to set its color and also preserve the help, local-map, etc, you can try something like this: (let* ((bid (propertized-buffer-identification "%12b")) (bstr (car bid))) (add-text-properties 0 (length bstr) '(face (:foreground "black" :background "orange")) bstr) (setq-default mode-line-buffer-identification bid)) Hope this helps, Juanma