From 2279872a165b8f0f1ba0419942362c2edc764754 Mon Sep 17 00:00:00 2001 From: noa Date: Mon, 11 Nov 2024 12:04:41 +0800 Subject: Add windmove configuration and put related settings together --- emacs/init.el | 20 +++++++++++++++----- 1 file 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) + -- cgit 1.4.1-2-gfad0