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

Cannot stop golden-ratio-toggle-widescreen imenu-list #83

Open
atanasj opened this issue Feb 13, 2020 · 1 comment
Open

Cannot stop golden-ratio-toggle-widescreen imenu-list #83

atanasj opened this issue Feb 13, 2020 · 1 comment

Comments

@atanasj
Copy link

atanasj commented Feb 13, 2020

Whatever I do I cannot stop the imenu-list sidebar from being resized. I have the following config:

(use-package golden-ratio
    :bind
    ("C-c C-g" . golden-ratio-mode)
    :config
    ;; (setq golden-ratio-adjust-factor 1.0
    ;;       golden-ratio-wide-adjust 0.0)
    ;; golden-ratio-exclude-modes
    (progn
      (dolist (m '("imenu-list-major-mode"
                   "imenu-list-minor-mode"
                   ))
        (add-to-list 'golden-ratio-exclude-modes m))
      (add-to-list 'golden-ratio-exclude-buffer-regexp "^\\*Ilist\\*"))
    ;; golden-ratio-extra-commands
    (dolist (f '(ace-window
                 ess-eval-buffer-and-go
                 ess-eval-function-and-go
                 ess-eval-line-and-go
                 ))
      (add-to-list 'golden-ratio-extra-commands f))
    ;; golden-ratio-exclude-buffer-names
    (dolist (n '("*Ilist*"))
      (add-to-list 'golden-ratio-exclude-buffer-names n))
    )

 (use-package imenu-list
    :bind
    ("s-\\" . imenu-list-smart-toggle)
    :config
    (setq imenu-list-focus-after-activation t
          imenu-list-size 0.236)
    (imenu-list-minor-mode 1)
    )

When I manually do M-x golden-ratio-toggle-widescreen, the behaviour is as expected whereby the vertical split is 50/50. However, not so for imenu-list.

Is it something I am doing wrong?

@gopakumar
Copy link

same issue here.
one possible fix is, set a max width for excluded buffers.

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

2 participants