8

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?

2 Answers 2

6

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")

Sign up to request clarification or add additional context in comments.

Comments

5

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.