1

Suddenly which-key, when triggered, takes up the entire lower half of the screen although only a portion of that is then filled with information. This behaviour started a couple of days ago, but I did not change the behaviour of which-key in any way.

(use-package which-key
  :ensure t
  :diminish which-key-mode
  :config
  (which-key-mode))

How can I change that?

Sometimes I think that the order in which my config file introduces packages is really crucial in terms of how emacs behaves, is that true?

  • 2
    "This behaviour started a couple of days ago, but I did not change the behaviour of which-key in any way." -- ok, but what did you change? If you revert those changes, does the problem go away? – phils Feb 24 at 13:06
  • 2
    "Sometimes I think that the order in which my config file introduces packages is really crucial in terms of how emacs behaves" -- Your init file is a program written in the emacs lisp programming language, so sure, the order in which things occur can absolutely make a difference! – phils Feb 24 at 13:08
  • hard to say. I rewrote my entire configu basically. the minibuffer behaves normally for swiper, find file etc. though... – CD86 Feb 24 at 13:49
  • 2
    I suggest you use the recursive bisection technique to figure out what bit of your new config is causing this. – phils Feb 24 at 14:12
  • Does which-key use magit-popup? This recently was replaced by transient inside magit. – InHarmsWay Feb 24 at 15:19
0

By default which-key uses what it calls side-window that confusingly is below the current window. The variable below controls the portion of the frame the which-key window can take. Check and adjust the value:

;; max height of which-key window, when displayed at top or bottom.
;; valid values: number of lines (integer), or percentage out of current
;; frame's height (float larger than 0 and smaller than 1)
(setq which-key-side-window-max-height 0.25)

More at https://github.com/justbur/emacs-which-key

  • the initial problem was related to the zoom package, which I use to dynamicallyt adjust buffer sizes when switching between them. Zoom allows to define modes that are disregarded though. Is switch keys minor mode called : which-key-mode? if so it does not work... – CD86 Feb 25 at 8:28
  • The use of the zoom package (zoom-window?) is crucial information missing in your question. Please update the question. Does which-key work as expected after disabling zoom? The mode is which-key-mode. – Heikki Feb 25 at 12:33
  • it does, I update the question accordingly – CD86 Feb 25 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.