From: Juanma Barranquero <lekktu@gmail.com>
To: Sean Sieger <sean.sieger@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: buffer name face
Date: Sat, 19 Dec 2009 21:33:07 +0100 [thread overview]
Message-ID: <f7ccd24b0912191233i21e052c6le409c1462fdc1632@mail.gmail.com> (raw)
In-Reply-To: <87ljgyivo2.fsf@gmail.com>
> How do you change the color of the buffer name in the mode line? In 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
next prev parent reply other threads:[~2009-12-19 20:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-19 19:57 buffer name face Sean Sieger
2009-12-19 20:30 ` Drew Adams
2009-12-19 20:35 ` Juanma Barranquero
2009-12-19 20:53 ` Sean Sieger
2009-12-19 20:33 ` Juanma Barranquero [this message]
2009-12-19 22:55 ` Peter Dyballa
2009-12-22 1:35 ` Sean Sieger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7ccd24b0912191233i21e052c6le409c1462fdc1632@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=sean.sieger@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).