aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/core.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-27 14:42:15 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-27 15:09:46 +0530
commit870ce03d0279bc1ce7215c311b061d68c95fdbc1 (patch)
treeccbdb0d3576055d5427afd923856fcc55aa3b8d7 /Emacs/.config/emacs/core.org
parenteb5b11e71bfc3a9f8cacd47fa747b05e19479f27 (diff)
downloaddotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.tar.gz
dotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.tar.bz2
dotfiles-870ce03d0279bc1ce7215c311b061d68c95fdbc1.zip
(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.
Diffstat (limited to 'Emacs/.config/emacs/core.org')
-rw-r--r--Emacs/.config/emacs/core.org8
1 files changed, 5 insertions, 3 deletions
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