diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-20 10:59:30 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-20 10:59:30 -0400 |
| commit | 42c84968a580a65dad14b5d1715e049617219999 (patch) | |
| tree | 1102d370d248dd43eba5d9d08ac7b962df2b3d5f /modules | |
| parent | 870b26f45a22eadf3c4313d5a64343fb0085c664 (diff) | |
| download | dotemacs-42c84968a580a65dad14b5d1715e049617219999.tar.gz dotemacs-42c84968a580a65dad14b5d1715e049617219999.zip | |
fix(windows): shrink the pull-away reveal to the minimum window height
minimize-window floors at window-min-height (4 lines), leaving roughly a 10% reveal. Bind window-min-height to 1 around it so the reveal opens at the ~2-line floor and the current window keeps almost the whole frame before the windsize arrows take over.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/ui-navigation.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/ui-navigation.el b/modules/ui-navigation.el index f53924eb..c099e083 100644 --- a/modules/ui-navigation.el +++ b/modules/ui-navigation.el @@ -99,7 +99,12 @@ existing split does. No-op when SIDE is nil." (when side (let ((new (split-window (selected-window) nil side))) (set-window-buffer new (other-buffer (current-buffer) t)) - (minimize-window new) + ;; Shrink the reveal to the smallest window Emacs allows (~2 lines, the + ;; mode line) so the current window keeps almost the whole frame; the + ;; sticky `windsize' arrows grow the reveal from there. `minimize-window' + ;; floors at `window-min-height' (4 by default), so bind it down to 1. + (let ((window-min-height 1)) + (minimize-window new)) new))) (defun cj/window-resize-sticky () |
