From d592251ebdf5aae44e8833120ce44d17c56ce137 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 30 May 2023 00:33:06 -0400 Subject: Implement IJKL movement keybinds --- init.el | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 5f5fdfb..ced54c0 100644 --- a/init.el +++ b/init.el @@ -1070,11 +1070,69 @@ ;; text (i.e. follow indentation) ;; --------------------------------- -;; Make home key respect indentation -(global-set-key (kbd "") 'beginning-of-line-text) -;; Use Shift + HOME for old behavior +;; --------------------------------- +;; Movement +;; -------- +;; MMOSMacs uses IJKL movement. +;; Movement all requires use of the +;; Super key. +;; +;; U and O are used as equivalents +;; of Home/PgUp and End/PgDown +;; respectively. +;; --------------------------------- + +;; Move by character +(global-set-key (kbd "s-i") (kbd "")) +(global-set-key (kbd "s-I") (kbd "")) +(global-set-key (kbd "s-k") (kbd "")) +(global-set-key (kbd "s-K") (kbd "")) +(global-set-key (kbd "s-j") (kbd "")) +(global-set-key (kbd "s-J") (kbd "")) +(global-set-key (kbd "s-l") (kbd "")) +(global-set-key (kbd "s-L") (kbd "")) + +;; Move left/right by word +(global-set-key (kbd "s-C-j") (kbd "")) +(global-set-key (kbd "s-C-S-j") (kbd "")) +(global-set-key (kbd "s-C-l") (kbd "")) +(global-set-key (kbd "s-C-S-l") (kbd "")) + +;; Move up/down by paragraph +(global-set-key (kbd "s-C-i") (kbd "")) +(global-set-key (kbd "s-C-S-i") (kbd "")) +(global-set-key (kbd "s-C-k") (kbd "")) +(global-set-key (kbd "s-C-S-k") (kbd "")) + +;; Home +(global-set-key (kbd "") 'beginning-of-line-text) +(global-set-key (kbd "s-u") (kbd "")) +(global-set-key (kbd "s-U") (kbd "S-")) (global-set-key (kbd "C-") 'beginning-of-visual-line) +(global-set-key (kbd "s-C-u") (kbd "C-")) +(global-set-key (kbd "s-C-S-u") (kbd "C-S-")) + +;; End +(global-set-key (kbd "s-o") (kbd "")) +(global-set-key (kbd "s-O") (kbd "S-")) +(global-set-key (kbd "C-") (kbd "")) +(global-set-key (kbd "C-S-") (kbd "S-")) +(global-set-key (kbd "s-C-o") (kbd "C-")) +(global-set-key (kbd "s-C-S-o") (kbd "C-S-")) + +;; PgUp / PgDown +(global-set-key (kbd "s-M-u") (kbd "")) +(global-set-key (kbd "s-M-U") (kbd "")) +(global-set-key (kbd "s-M-o") (kbd "")) +(global-set-key (kbd "s-M-O") (kbd "")) + +;; ;; Backspace / Delete +(global-set-key (kbd "s-SPC") (kbd "")) +(global-set-key (kbd "C-SPC") (kbd "")) + +;; TAB +(global-set-key (kbd "") (kbd "")) ;; --------------------------------- -- cgit v1.2.3