Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs 24: Mode-Line Style

I am trying to change the styling of the modeline in emacs 24.

I want to add an overline and an underline. Underline works fine, but overline is not working for some reason. Here is my code so far (added to .emacs):

(set-face-attribute 'mode-line nil
   :foreground "gray0"
   :background "cyan"
   :overline "cyan"
   :underline "cyan")

Any ideas on how to get the overline working?

Also is there a way to set the distance between the borders and text?

Thanks

like image 306
BIOS Avatar asked May 26 '13 20:05

BIOS


1 Answers

If I remember correctly, the default mode-line spec has a non-nil :box spec, so it might solve your problem to add the line :box nil to your code listed above.

like image 181
hruvulum Avatar answered Sep 21 '22 11:09

hruvulum