* buffer name face
@ 2009-12-19 19:57 Sean Sieger
2009-12-19 20:30 ` Drew Adams
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Sean Sieger @ 2009-12-19 19:57 UTC (permalink / raw)
To: help-gnu-emacs
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.
I've been searching the manual, the elisp manual, emacswiki and once
again, I can't come up with the right search terms.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: buffer name face
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:33 ` Juanma Barranquero
2009-12-19 22:55 ` Peter Dyballa
2 siblings, 1 reply; 7+ messages in thread
From: Drew Adams @ 2009-12-19 20:30 UTC (permalink / raw)
To: 'Sean Sieger', help-gnu-emacs
> 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.
>
> I've been searching the manual, the elisp manual, emacswiki and once
> again, I can't come up with the right search terms.
Dunno about tty, but otherwise, customizing face `mode-line-buffer-id' should
solve the problem.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: buffer name face
2009-12-19 19:57 buffer name face Sean Sieger
2009-12-19 20:30 ` Drew Adams
@ 2009-12-19 20:33 ` Juanma Barranquero
2009-12-19 22:55 ` Peter Dyballa
2 siblings, 0 replies; 7+ messages in thread
From: Juanma Barranquero @ 2009-12-19 20:33 UTC (permalink / raw)
To: Sean Sieger; +Cc: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: buffer name face
2009-12-19 20:30 ` Drew Adams
@ 2009-12-19 20:35 ` Juanma Barranquero
2009-12-19 20:53 ` Sean Sieger
0 siblings, 1 reply; 7+ messages in thread
From: Juanma Barranquero @ 2009-12-19 20:35 UTC (permalink / raw)
To: Drew Adams; +Cc: Sean Sieger, help-gnu-emacs
On Sat, Dec 19, 2009 at 21:30, Drew Adams <drew.adams@oracle.com> wrote:
> Dunno about tty, but otherwise, customizing face `mode-line-buffer-id' should
> solve the problem.
Or you can do this, which is easier :-)
I use the other method because I do change also the length of the
buffer name, etc. i.e., I use "%b" instead of "%12b".
Juanma
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: buffer name face
2009-12-19 20:35 ` Juanma Barranquero
@ 2009-12-19 20:53 ` Sean Sieger
0 siblings, 0 replies; 7+ messages in thread
From: Sean Sieger @ 2009-12-19 20:53 UTC (permalink / raw)
To: help-gnu-emacs
Juanma Barranquero <lekktu@gmail.com> writes:
On Sat, Dec 19, 2009 at 21:30, Drew Adams <drew.adams@oracle.com> wrote:
> Dunno about tty, but otherwise, customizing face
> `mode-line-buffer-id' should solve the problem.
Or you can do this, which is easier :-)
I use the other method because I do change also the length of the
buffer name, etc. i.e., I use "%b" instead of "%12b".
Thank you, guys.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: buffer name face
2009-12-19 19:57 buffer name face Sean Sieger
2009-12-19 20:30 ` Drew Adams
2009-12-19 20:33 ` Juanma Barranquero
@ 2009-12-19 22:55 ` Peter Dyballa
2009-12-22 1:35 ` Sean Sieger
2 siblings, 1 reply; 7+ messages in thread
From: Peter Dyballa @ 2009-12-19 22:55 UTC (permalink / raw)
To: Sean Sieger; +Cc: help-gnu-emacs
Am 19.12.2009 um 20:57 schrieb Sean Sieger:
> 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.
In GNU Emacs 22 I have this customisation:
'(mode-line ((t (:background "DeepSkyBlue1" :foreground
"black" :height 1.25 :family "courier"))))
'(mode-line-inactive ((t (:inherit mode-line :background
"PaleTurquoise1" :foreground "grey20" :box (:line-width -1 :color
"grey75") :weight light :family "profontwindows"))))
The difference between an active and an inactive buffer is not
visible, also the font change. The mode-line is pretty well visible
and the black text too.
--
Greetings
Pete <\
_\ O _
|o \ _\\_/-\='
_____________(_)|-(_) (_)___________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: buffer name face
2009-12-19 22:55 ` Peter Dyballa
@ 2009-12-22 1:35 ` Sean Sieger
0 siblings, 0 replies; 7+ messages in thread
From: Sean Sieger @ 2009-12-22 1:35 UTC (permalink / raw)
To: help-gnu-emacs
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
In GNU Emacs 22 I have this customisation:
'(mode-line ((t (:background "DeepSkyBlue1" :foreground "black"
:height 1.25 :family "courier"))))
'(mode-line-inactive ((t (:inherit mode-line :background
"PaleTurquoise1" :foreground "grey20" :box (:line-width -1 :color
"grey75") :weight light :family "profontwindows"))))
The difference between an active and an inactive buffer is not
visible, also the font change. The mode-line is pretty well visible
and the black text too.
Thanks for this, Peter; I'll experiment with it.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-12-22 1:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-12-19 22:55 ` Peter Dyballa
2009-12-22 1:35 ` Sean Sieger
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).