I just read Mickey’s wonderful article on window management, and has given me the push I need to take control over my emacs windows/frames. I have an idea of what I will configure; maximum of two windows per frame, and if is my portrait frame split horizontally and split vertically for my landscape frame, plus some additional config for Magit. Before I take the plunge, I wanted to quickly reach out to see what other people have done for their configs to get some ideas. Figure might also be good to collect a few different configurations of window configs for people interested.

Some configs I have found on the way and will update with any suggestions people have:

  • Karthink’s config, good integration with the popper package
  • emacs-pure - has some display-buffer-alist settings for magit which are of interest to me, as the built in magit methods for handling new frames isn’t exactly what I want.

Any recommendations, please feel free to share them.

  • centzon400@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago
    (add-to-list 'display-buffer-alist
                 '("\\*e?shell\\*"
                   (display-buffer-in-side-window)
                   (side . bottom)
                   (slot . -1) ;; -1 == L  0 == Mid 1 == R
                   (window-height . 0.33) ;; take 2/3 on bottom left
                   (window-parameters
                    (no-delete-other-windows . nil))))
    
    (add-to-list 'display-buffer-alist
                 '("\\*\\(Backtrace\\|Compile-log\\|Messages\\|Warnings\\)\\*"
                   (display-buffer-in-side-window)
                   (side . bottom)
                   (slot . 0)
                   (window-height . 0.33)
                   (window-parameters
                    (no-delete-other-windows . nil))))
    
    (add-to-list 'display-buffer-alist
                 '("\\*\\([Hh]elp\\|Command History\\|command-log\\)\\*"
                   (display-buffer-in-side-window)
                   (side . right)
                   (slot . 0)
                   (window-width . 80)
                   (window-parameters
                    (no-delete-other-windows . nil))))
    
    (add-to-list 'display-buffer-alist
                 '("\\*TeX errors\\*"
                   (display-buffer-in-side-window)
                   (side . bottom)
                   (slot . 3)
                   (window-height . shrink-window-if-larger-than-buffer)
                   (dedicated . t)))
    
    (add-to-list 'display-buffer-alist
                 '("\\*TeX Help\\*"
                   (display-buffer-in-side-window)
                   (side . bottom)
                   (slot . 4)
                   (window-height . shrink-window-if-larger-than-buffer)
                   (dedicated . t)))