Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Side window is too narrow #362

Open
haplo opened this issue Feb 9, 2024 · 1 comment · May be fixed by #363
Open

Side window is too narrow #362

haplo opened this issue Feb 9, 2024 · 1 comment · May be fixed by #363

Comments

@haplo
Copy link

haplo commented Feb 9, 2024

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
Copy link
Author

haplo commented Feb 9, 2024

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.

haplo added a commit to haplo/emacs-which-key that referenced this issue Feb 9, 2024
Mention which-key-max-description-length in the side-window setup. The
default can lead to windows that are too narrow.

Fix justbur#362.
@haplo haplo linked a pull request Feb 9, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant