justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.73k stars 87 forks source link

Side window is too narrow #362

Open haplo opened 6 months ago

haplo commented 6 months ago

When setting which-key to display on the side the window is too narrow.

image

This looks even worse when I use Emacs full-screen in my 4k monitor:

image

This happens both with which-key-setup-side-window-right-bottom and which-key-setup-side-window-right.

I use marginalia, not sure if it's interacting here somehow.

which-key is installed from MELPA, version 20230905.2128.

Configuration:

(use-package which-key
  :custom
  (which-key-idle-delay 0.5)
  :init
  (which-key-setup-side-window-right-bottom)
  :hook
  (after-init . which-key-mode))
haplo commented 6 months ago

Nevermind, it was fixed by increasing the value of which-key-max-description-length. I should have double-read the README.

I will send a PR to mention it, I cannot be the only one falling for this.