reddit / emacs

Doom Emacs "commands suggestion popup" gets trimmed off when running on client-deamon mode

nqminhuit 路 2022-09-08 03:21
Hello, I'm new to Emacs and am using Doom emacs, when use Emacs with deamon-client mode I see this "commands suggestion popup" (I don't know what it's called since Doom integrate it for us) the last line is trimmed off and barely see. Does anyone have this similar issue? There is no problem with this if I open emacs without running with deamon. https://preview.redd.it/00rmkmdezjm91.png?width=1920&format=png&auto=webp&s=33552acae7a6dc5434197c47d3487fca8a6120e4
TheSnowIsCold-46 路 2022-09-08 03:30
馃憖, I've been using Doom for awhile but haven't figured this one out either, mostly because I will get impatient and just M-x find the command. I'd be interested to know too! May want to also ask the Doom discord chat too if you can't find an answer here
nqminhuit 路 2022-09-08 03:44
I asked some questions on Doom discord before but sadly never get the answer, too many messages.
krypt3c 路 2022-09-08 04:37
You could also try the discourse that is pinned. I鈥檝e had some luck with that
organic-bookworm 路 2022-09-08 06:14
There's an open [issue](https://github.com/doomemacs/doomemacs/issues/6580) at Doom's. The suggested fix is to `(setq which-key-allow-imprecise-window-fit nil)`.
graduale 路 2022-09-08 12:28
Some people haven't had look just doing that. I don't use Doom but had the same issue. A different suggestion, a bit more simpleminded perhaps, did fix the problem: basically add an extra blank line at the bottom of the popup window. Not sure where this came from originally, but here it is in case it comes in handy: (defun add-which-key-line (f &rest r) (progn (apply f (list (cons (+ 1 (car (car r))) (cdr (car r))))))) (advice-add 'which-key--show-popup :around #'add-which-key-line)
nqminhuit 路 2022-09-09 02:07
Thank you, `(setq which-key-allow-imprecise-window-fit nil)` works for me.
nqminhuit 路 2022-09-09 02:59
>(defun add-which-key-line (f &rest r) (progn (apply f (list (cons (+ 1 (car (car r))) (cdr (car r))))))) (advice-add 'which-key--show-popup :around #'add-which-key-line) thank you for your suggestion, this solution also works for me, however, it seems always creates new blank line even with very few items.