From 84f43a6088886a5d37dc51fd6dbfbf217df3c2b1 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 16 Feb 2026 23:51:28 +0000 Subject: spatial-window --- custom/jao-custom-mac.el | 1 + init.el | 12 +++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/custom/jao-custom-mac.el b/custom/jao-custom-mac.el index d5ebc2e..a4d44a1 100644 --- a/custom/jao-custom-mac.el +++ b/custom/jao-custom-mac.el @@ -12,6 +12,7 @@ "/Applications/Emacs.app/Contents/MacOS/libexec-arm64-11" "/opt/homebrew/sbin" "/opt/homebrew/bin" + "~/.ghcup/bin" "~/.local/bin" "~/.cabal/bin" "~/.cargo/bin" 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") -- cgit v1.2.3