From 870ce03d0279bc1ce7215c311b061d68c95fdbc1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 27 Apr 2024 14:42:15 +0530 Subject: (Emacs/config|core|elisp)+move.el Library to move words forward and backward as well as lines up and down. These movements keep the object in question under the cursor which provides a nice experience. --- Emacs/.config/emacs/core.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Emacs/.config/emacs/core.org') diff --git a/Emacs/.config/emacs/core.org b/Emacs/.config/emacs/core.org index 5298760..4756e46 100644 --- a/Emacs/.config/emacs/core.org +++ b/Emacs/.config/emacs/core.org @@ -119,9 +119,11 @@ Some bindings that I couldn't fit elsewhere easily. ("C-x d" #'delete-frame) (nmmap - :keymaps 'override - "C-M-j" #'move-line-down - "C-M-k" #'move-line-up) + :keymaps '(text-mode-map prog-mode-map) + "C-M-h" #'+move/word-backward + "C-M-j" #'+move/line-down + "C-M-k" #'+move/line-up + "C-M-l" #'+move/word-forward) (nmmap "C--" #'text-scale-decrease -- cgit v1.2.3-13-gbd6f