diff options
author | jao <jao@gnu.org> | 2022-09-03 02:13:08 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-03 02:13:08 +0100 |
commit | fa4ca035914c21d3cbacd3c82d4ead5ce814901c (patch) | |
tree | d73f3eba0463c8f1641117eb37a68f483b5c6fd5 | |
parent | 67a5c79a89db0d41bba4453943489f62b7b27022 (diff) | |
download | elibs-fa4ca035914c21d3cbacd3c82d4ead5ce814901c.tar.gz elibs-fa4ca035914c21d3cbacd3c82d4ead5ce814901c.tar.bz2 |
a bit more sensible jao-trisect, after all these years
-rw-r--r-- | init.el | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1347,14 +1347,17 @@ (defun jao-trisect (&optional force) (interactive) (let ((fw (frame-width))) - (delete-other-windows) (cond ((or force (>= fw 240)) - (let ((w (- (/ fw 3)))) + (let ((b (current-buffer))) (delete-other-windows) - (split-window-horizontally w) - (split-window-horizontally w) + (switch-to-buffer (other-buffer b)) + (split-window-horizontally) + (switch-to-buffer (other-buffer b)) + (split-window-horizontally) + (switch-to-buffer b) (balance-windows))) ((> fw 162) + (delete-other-windows) (split-window-horizontally) (switch-to-buffer (other-buffer)))))) |