roman / golden-ratio.el

Automatic resizing of Emacs windows to the golden ratio
MIT License
589 stars 38 forks source link

golden-ratio not work well with which-key side window #82

Open stardiviner opened 4 years ago

stardiviner commented 4 years ago

golden-ratio does not work with which-key side window. How can I add which-key side window to golden-ratio exclude rules?

stardiviner commented 4 years ago

Here is the screenshot:

image

vmfhrmfoaj commented 3 years ago

I found following code (On Emacs-28.0.5 (native-comp branch) it works fine):

(with-eval-after-load "which-key"
  (add-to-list 'golden-ratio-inhibit-functions
               (lambda ()
                 (and which-key--buffer
                      (window-live-p (get-buffer-window which-key--buffer))))))

https://github.com/roman/golden-ratio.el/issues/60#issue-108892940