2

I want to move my mode-line to the top of each window. So, I've copied its contents into the header-line.

(setq-default header-line-format mode-line-format)
(setq-default mode-line-format nil)

But, I'm using the modus themes, so the selected window's mode-line shows with different faces.

How can I copy the faces of a window's mode-line to its header-line?

Drew
  • 75,699
  • 9
  • 109
  • 225
bluekeys
  • 123
  • 4

1 Answers1

0

Customize face header-line, to make it inherit from face mode-line.

M-x customize-face header-line

You can do the same with face header-line-highlight, inheriting from face mode-line-highlight.

Actually, such face inheritance is done by default. But some other face attributes are also set by default. You can undefine (unselect) those.

enter image description here

Drew
  • 75,699
  • 9
  • 109
  • 225