0

I'm using the which-key package and I checked the docs and it seems you can set the max height for the buffer with (setq which-key-frame-max-height 20) , but I can't seem to find a way to set the minimum height. I want to leave at least and empty line if the which key buffer is just a line height.

;; --- Which Key Mode ---

(use-package which-key
  :ensure t

  :defer t
  
  :config
  
  (setq which-key-idle-delay 3.0)
  (setq which-key-separator " → " )
  (setq which-key-unicode-correction 3)
  (setq which-key-prefix-prefix "+" )
  (setq which-key-side-window-location 'bottom)

  ;; This line doesn't seem to do anything
  (setq which-key-min-display-lines 13)
      
  )

Shows just two lines:

enter image description here

2
  • does (setq which-key-min-display-lines 2) do what you need?
    – Tyler
    Commented Oct 5, 2021 at 17:48
  • It seems to ignore that variable, I just updated my question with my current which-key config.
    – Fabman
    Commented Oct 6, 2021 at 8:18

1 Answer 1

0

I have a set of key bindings that is one line. When I apply your minimum height of '13', the one line turns into 3 lines, justified left. Setting it to larger values seemed to have no further effect. Unclear to me what is meant by 'lines.'

It's 50-50 whether the lines would be above or below the listed key bindings. I opened an issue at GitHub. We'll see what happens.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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