Is it possible to have only one mode line (sometimes referred as "statusbar") for all windows?
I'd like to make this single mode line show information about the currently selected buffer.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
I don't have a solution for a single modeline, but here are two possible alternative solutions:
If you use powerline, you could wrap your mode-line-format in:
((:eval (when (powerline-selected-window-active) ...)))
then change the
mode-line-inactive face so blends with your background but still separates buffers with:
(set-face-attribute 'mode-line-inactive nil :underline t :background (face-background 'default))
This will look like this:
frame-title-format determines what is show on the top of your frame when running in a gui.
frame-title-format' like you would yourmode-line-format` and them set your mode-line-format to something blank-ish.
You can get the source code from https://github.com/amosbird/emacs/tree/onemodeline . Basically it uses mini-window's header line to render current buffer's modeline.