summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2024-11-11 12:04:41 +0800
committernoa2024-11-11 12:04:41 +0800
commit2279872a165b8f0f1ba0419942362c2edc764754 (patch)
treec153e69967953ec8bec10bf9f4f5ae3e8022578a /emacs
parentcc88666af2731d6c3ca14408c62f2a670367b2cc (diff)
Add windmove configuration and put related settings together
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/emacs/init.el b/emacs/init.el
index b332815..789f3d3 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -588,11 +588,6 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
 ;; We are on a unix system, so it makes sense to end files in the unix system way.  I'm surprised this isn't the default.
 (setopt require-final-newline t)
 
-(setopt window-min-height 1
-        window-combination-resize t
-        window-resize-pixelwise t
-        frame-resize-pixelwise t)
-
 ;; Zap up to char
 (global-set-key (kbd "M-z") 'zap-up-to-char)
 
@@ -833,3 +828,18 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
   (which-key-mode t))
 
 
+(use-package windmove
+  :disabled t
+  :bind*
+  (("M-b" . windmove-left)
+   ("M-f" . windmove-right)
+   ("M-p" . windmove-up)
+   ("M-n" . windmove-down)))
+
+;; for whatever reason, window-combination-resize doesn't work with this
+(global-set-key (kbd "C-x 3") #'split-root-window-right)
+(setopt window-min-height 1
+        window-combination-resize t
+        window-resize-pixelwise t
+        frame-resize-pixelwise t)
+