diff options
author | noa | 2024-11-11 12:03:48 +0800 |
---|---|---|
committer | noa | 2024-11-11 12:03:48 +0800 |
commit | cc88666af2731d6c3ca14408c62f2a670367b2cc (patch) | |
tree | 34843951833c3b432aecd76f52d522e140eb4b3f | |
parent | c8120d3b42b90ab1e89f1bd1e282ebf1f4781f1d (diff) |
Add simplified window management keybindings
-rw-r--r-- | emacs/init.el | 12 |
1 files changed, 7 insertions, 5 deletions
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 "<C-i>") '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 |