Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balance-windows makes ilist window take half of screen #81

Open
MicahElliott opened this issue May 18, 2022 · 0 comments
Open

balance-windows makes ilist window take half of screen #81

MicahElliott opened this issue May 18, 2022 · 0 comments

Comments

@MicahElliott
Copy link

MicahElliott commented May 18, 2022

Calling balance-windows (C-x +) causes imenu-list to take 50% of window instead of staying fixed size (or even being balanced). Problem is probably only obvious if you have 2+ side-by-side non-ilist windows.

I've found this as a workaround, but it causes other problems:

(defun my-balance-windows ()
  (interactive)
  (imenu-list)
  (window-preserve-size (get-buffer-window imenu-list-buffer-name) t t)
  (balance-windows))

And this maybe is a more proper workaround:

(add-hook 'imenu-list-minor-mode-hook #'(lambda () (message "in minor hook") (window-preserve-size (get-buffer-window imenu-list-buffer-name) t t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant