summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2026-02-16 23:51:28 +0000
committerjao <jao@gnu.org>2026-02-16 23:51:28 +0000
commit84f43a6088886a5d37dc51fd6dbfbf217df3c2b1 (patch)
treeb0628393ff884a0ade7f7486cfee0b64ba4cfbe9 /init.el
parentcc42a096c267ae184e20960d3f397ef083855f04 (diff)
downloadelibs-84f43a6088886a5d37dc51fd6dbfbf217df3c2b1.tar.gz
elibs-84f43a6088886a5d37dc51fd6dbfbf217df3c2b1.tar.bz2
spatial-window
Diffstat (limited to 'init.el')
-rw-r--r--init.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/init.el b/init.el
index 432f494..367427e 100644
--- a/init.el
+++ b/init.el
@@ -1025,9 +1025,9 @@
;;; Windows
;;;; splitting and switch
-(setq split-height-threshold 80
+(setq split-height-threshold 200
split-width-threshold 144
- display-buffer-avoid-small-windows 20)
+ display-buffer-avoid-small-windows 40)
(setq switch-to-buffer-preserve-window-point nil
switch-to-buffer-obey-display-actions nil
@@ -1085,7 +1085,13 @@
(global-set-key "\C-xp" 'jao-prev-window)
-;; transposing windows
+;;;; window navigation (spatial-window)
+
+(use-package spatial-window
+ :ensure t
+ :bind ("C-M-o" . spatial-window-select))
+
+;;;; transposing windows
(defun transpose-windows (arg)
"Transpose the buffers shown in two windows."
(interactive "p")