All Projects → muffinmad → Emacs Mini Frame

muffinmad / Emacs Mini Frame

Licence: gpl-3.0
Show minibuffer in child frame on read-from-minibuffer

Labels

Projects that are alternatives of or similar to Emacs Mini Frame

Org Brain
Org-mode wiki + concept-mapping
Stars: ✭ 1,512 (+1214.78%)
Mutual labels:  emacs
Emacs Gtd
Get Things Done with Emacs
Stars: ✭ 111 (-3.48%)
Mutual labels:  emacs
Burly.el
Save and restore frames and windows with their buffers in Emacs
Stars: ✭ 109 (-5.22%)
Mutual labels:  emacs
Tui.el
An experimental text-based UI framework for Emacs modeled after React - **requires emacs 26.1**
Stars: ✭ 108 (-6.09%)
Mutual labels:  emacs
Smart Scan
Jumps between other symbols found at point in Emacs
Stars: ✭ 110 (-4.35%)
Mutual labels:  emacs
Lsp Pyright
lsp-mode ❤️ pyright
Stars: ✭ 111 (-3.48%)
Mutual labels:  emacs
Slime
The Superior Lisp Interaction Mode for Emacs
Stars: ✭ 1,541 (+1240%)
Mutual labels:  emacs
Emacs Application Framework
A free/libre and open-source extensible framework that revolutionizes the graphical capabilities of Emacs, the key to ultimately Live in Emacs
Stars: ✭ 1,932 (+1580%)
Mutual labels:  emacs
Emacs Everywhere
System-wide popup Emacs windows for quick edits
Stars: ✭ 108 (-6.09%)
Mutual labels:  emacs
Marginalia
📜 marginalia.el - Marginalia in the minibuffer
Stars: ✭ 111 (-3.48%)
Mutual labels:  emacs
Reason Mode
Emacs major mode for working with ReasonML
Stars: ✭ 108 (-6.09%)
Mutual labels:  emacs
Company Irony
company-mode completion back-end for irony-mode
Stars: ✭ 110 (-4.35%)
Mutual labels:  emacs
Magit Delta
Use delta (https://github.com/dandavison/delta) when viewing diffs in Magit
Stars: ✭ 109 (-5.22%)
Mutual labels:  emacs
Smartparens
Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
Stars: ✭ 1,529 (+1229.57%)
Mutual labels:  emacs
Dotfiles
If there is a shell, there is a way!
Stars: ✭ 112 (-2.61%)
Mutual labels:  emacs
Centered Window Mode
Keep your text centered when there's only one window.
Stars: ✭ 107 (-6.96%)
Mutual labels:  emacs
Org Pandoc Import
Save yourself from non-org formats, thanks to pandoc
Stars: ✭ 111 (-3.48%)
Mutual labels:  emacs
Pocket Reader.el
Emacs client for Pocket reading list (getpocket.com)
Stars: ✭ 113 (-1.74%)
Mutual labels:  emacs
Fcitx.el
Better fcitx integration for Emacs.
Stars: ✭ 113 (-1.74%)
Mutual labels:  emacs
Emacs Doom Themes
A megapack of themes for GNU Emacs.
Stars: ✭ 1,706 (+1383.48%)
Mutual labels:  emacs

License GPL 3 MELPA

emacs-mini-frame

Place minibuffer at the top of the current frame on read-from-minibuffer.

While it's fine for me to have eldoc, flymake and other messages to appear at the bottom of the screen, editing minibuffer (find file, create VC branch, etc.) feels more comfortable in the upper area of the screen.

mini-frame-mode makes an advice around read-from-minibuffer function to create and show minibuffer-only child frame to accept input.

How it looks like

By default mini-frame is placed at the top of the current frame and occupied full width. Here is execute-extended-command (M-x) with icomplete-mode enabled:

Those who use vertical completion candidates list may configure mini-frame not to occupy full width:

(custom-set-variables
 '(mini-frame-show-parameters
   '((top . 10)
     (width . 0.7)
     (left . 0.5))))

Here is switch-to-buffer (C-x b) with ido-vertical-mode:

And execute-extended-command (M-x) with ivy-mode:

mini-frame-mode also create separate child frame to display completions list:

Mini-frame size

Users of Emacs 27 will benefits the most because of resize-mini-frames variable: mini-frame will be resized vertically to fit content.

Users of Emacs 26 will need to configure frame height explicitly, e.g.:

(custom-set-variables
 '(mini-frame-show-parameters
   '((top . 0)
     (width . 1.0)
     (left . 0.5)
     (height . 15))))

Gnome shell does not resize Emacs child frames

Until this issue will be solved, Gnome Shell users must also set mini-frame height.

Another option for Gnome Shell users is to use the following code in initialization file:

(setq x-gtk-resize-child-frames 'resize-mode)

Ignore commands

One can configure the list of commands that must not be shown in the child frame by customizing the mini-frame-ignore-commands. The eval-expression command is there by default because mini-frame have no modeline to display eldoc hints. And because there must be some place to turn mini-frame-mode off if something goes wrong (I hope not) :)

Installation and usage

mini-frame is available on MELPA.

Alternatively, you can download mini-frame.el and run:

M-x package-install-file RET <path-to-mini-frame-el> RET

M-x mini-frame-mode RET

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].