golden-ratio.el icon indicating copy to clipboard operation
golden-ratio.el copied to clipboard

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

Open atanasj opened this issue 5 years ago • 1 comments

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?

atanasj avatar Feb 13 '20 04:02 atanasj

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

gopakumar avatar Mar 31 '23 21:03 gopakumar