Allows to display mode line information in minibuffer.
Using Melpa
Using Quelpa
Example:
;; I'm activating mini-modeline after smart-mode-line
(use-package mini-modeline
:quelpa (mini-modeline :repo "kiennq/emacs-mini-modeline" :fetcher github)
:after smart-mode-line
:config
(mini-modeline-mode t))Just clone this repo and put it in your load-path.
mini-modeline comes with a global minor-mode mini-modeline-mode.
You can toggle it by M-x mini-modeline-mode.
-
Display mode line in minibuffer. By default you can set anything that compatible with
mode-line-format, even your current mode line and it will be nicely kept in minibuffer. -
Support left/right align display. You can set left side and right side part of
mini-modelineseparately. Just assign amode-line-formatcompatible list to eithermini-modeline-l-formatormini-modeline-r-format, and it will be left/right aligned accordingly. -
Support multiple lines display in
minibuffer
You can customize those variable for better experiences.
-
mini-modeline-l-formatLeft part of mini-modeline, same format withmode-line-format. -
mini-modeline-r-formatRight part of mini-modeline, same format withmode-line-format. -
mini-modeline-face-attrPlist of face attribute/value pair for mini-modeline. -
mini-modeline-enhance-visualEnhance minibuffer and window's visibility. This will enablewindow-divider-modesince without the mode line, two continuous windows are nearly indistinguishable. -
mini-modeline-echo-durationDuration to keep display echo.mini-modelinewill display the message which has been echoed to echo area as part of mode line. Those echo will be automatically clear after this interval. Check out the gif to see it in action. -
mini-modeline-update-intervalThe minimum interval to updatemini-modeline. If you foundmini-modelineis being updated to frequently, you can customize this variable. -
mini-modeline-frameFrame to display mini-modeline on.nilmeans current selected frame. -
mini-modeline-truncate-pTruncates themini-modelineto fit in one line. -
mini-modeline-right-paddingPadding to use in the right side. Set this to the minimal value that doesn't cause truncation. -
mini-modeline-display-gui-lineDisplay thin line at the bottom of each window.
Echo area or minibuffer which reside in it is a big waste most of the time.
It's empty (mostly) and unnecessarily consume an additional line of your editor.
Look at VsCode, it has only one line at the bottom to display the status, even more, its message can even be nicely integrated into the status line.
That's the sleek UI that I want for my editor.
At first, I've tried to hide minibuffer and only raise it when needed.
Those efforts not bode well, even when the minibuffer is displayed in separate frame, it still has title bar, which is ugly since the minibuffer is just one line.
Trying to display minibuffer in mini frame is not working well too. Well, I've never succeeded at that.
Then, finally another idea comes, if I cannot hide the minibuffer, I can just hide the mode-line, and display its information in minibuffer instead.
Hence that why this package is born.
