Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change color of buffer name in mode-line

Tags:

emacs

elisp

It would be nice to have the buffer/file name more visible inside the mode-line specially when working with many files.

How to change the color of buffer name inside mode-line?

like image 226
SFbay007 Avatar asked Jan 16 '14 18:01

SFbay007


2 Answers

You can also use:

(set-face-attribute 'mode-line-buffer-id nil :foreground "black")

or for carbon emacs:

(set-face-attribute 'modeline-buffer-id nil :foreground "black")

like image 194
Ivan Genchev Avatar answered Oct 24 '22 01:10

Ivan Genchev


Just customize face mode-line-buffer-id: M-x customize-face.

I use this value, for instance (from my custom-file):

 (mode-line-buffer-id ((t (:overline "red" :underline "red"))))

IOW, I have both an overline and an underline, for the buffer name.

like image 24
Drew Avatar answered Oct 24 '22 02:10

Drew