Search code examples
emacscustomizationemacs23modeline

Changing the position of modeline


Is it possible to change the position of modeline so that it appears at the top of the buffer instead of at the bottom of the main buffers? If so, how can I do it?


Solution

  • You can have a header-line, and turn off the mode-line with:

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

    This seems to do what (I think) you want for basic usage at least. Opening new files and buffers keeps the header line in place and doesn't have a mode line.

    Read more of the documentation about Mode-Line Format.