From cc88666af2731d6c3ca14408c62f2a670367b2cc Mon Sep 17 00:00:00 2001 From: noa Date: Mon, 11 Nov 2024 12:03:48 +0800 Subject: Add simplified window management keybindings --- emacs/init.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 8c7ea70..b332815 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -256,7 +256,7 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." ;; Goto address mode makes urls and email address in a buffer clickable. I want these clickable links to look like links, because that's what they are. The two mouse face variables are what face is used on hover, which at the moment i ignore. It might also be worth setting them to 'highlight. (use-package goto-addr :custom - (global-goto-address-mode t) + (global-goto-address-mode nil) (goto-address-mail-face 'link) (goto-address-mail-mouse-face 'highlight) (goto-address-url-face 'link) @@ -508,10 +508,6 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (marginalia-max-relative-age most-positive-fixnum) ;; Always show the relative age of file ) -;; Completion at point on C-i -(define-key input-decode-map [?\C-i] [C-i]) -(global-set-key (kbd "") 'completion-at-point) - ;; Minibuffer candidate completion ;; Display completion candidates vertically (use-package vertico @@ -626,7 +622,13 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word." (isearch-repeat-on-direction-change t) (isearch-wrap-pause 'no)) +;; Make window management commands easier to press (global-set-key (kbd "M-o") 'other-window) +(global-set-key (kbd "M-1") 'delete-other-windows) +(global-set-key (kbd "M-2") 'split-window-below) +(global-set-key (kbd "M-3") 'split-window-right) +(global-set-key (kbd "M-0") 'delete-window) + (global-set-key (kbd "C-x k") 'kill-current-buffer) ;; Window management -- cgit 1.4.1-2-gfad0