Re: Permanently increase size of minibuffer / echo area

Eli Zaretskii <[email protected]> Thu, 28 May 2026 17:56:00 +0300
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
> From: Joost Kremers <[email protected]>
> Date: Thu, 28 May 2026 16:47:16 +0200
> 
> I'm trying to find a way to permanently increase the size of the
> minibuffer / echo area, but so far, haven't been totally successful.
> 
> Through trial and error and a little help from an AI, I ended up with the
> following:
> 
> ```
> (setq resize-mini-windows nil)
> 
> (run-with-timer 0.1 nil
>                 (lambda ()
>                   (set-window-text-height (minibuffer-window) 2)))
> ```
> 
> I tried the same lambda in `window-setup-hook`, but that didn't work
> reliably (it worked sometimes, but not always), and also a direct call to
> `set-window-text-height`, but that didn't seem to work at all.
> 
> Despite this, the size of the minibuffer sometimes reverts to 1, especially
> on Android, but also on Linux.
> 
> So I was wondering: is there a better way to make sure that the minibuffer
> / echo area is always at least 2 lines high, even when it's empty? Is there
> perhaps even a "right" way to do it?

The "right" (and IMO the _only_) way of doing that is to do it on the
C level.  Because various places in C reset the mini-window back to
its single-line empty state.  So we need some optional feature to make
that default size be N lines tall instead.