summaryrefslogtreecommitdiff
path: root/.config/emacs/modules
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-21 12:35:57 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-21 12:35:57 +0200
commit01b13d18c60092edd23a4ef118de67c7c01c7c79 (patch)
treec05ec55eb075a6ce14a1800bbed927f20b91e526 /.config/emacs/modules
parentf4f5a1ae06b771526887da7f04e78b8b1bb733cb (diff)
emacs: Add more convenience commands
Diffstat (limited to '.config/emacs/modules')
-rw-r--r--.config/emacs/modules/mm-keybindings.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/.config/emacs/modules/mm-keybindings.el b/.config/emacs/modules/mm-keybindings.el
index c1dee93..a025a82 100644
--- a/.config/emacs/modules/mm-keybindings.el
+++ b/.config/emacs/modules/mm-keybindings.el
@@ -89,7 +89,8 @@ the first command is remapped to the second command."
mark-word e/mark-entire-word
open-line e/open-line
transpose-chars e/transpose-previous-chars
- transpose-lines e/transpose-current-and-next-lines)
+ transpose-lines e/transpose-current-and-next-lines
+ yank e/yank)
(with-eval-after-load 'cc-vars
(setopt c-backspace-function #'backward-delete-char))
@@ -117,12 +118,16 @@ the first command is remapped to the second command."
"C-c d" #'duplicate-dwim
"C-c t a" #'e/align-regexp
"C-c t f" #'fill-paragraph
- "C-c t s" #'sort-lines)
+ "C-c t s" #'e/sort-dwim)
(mm-keymap-set-repeating global-map
"j" #'e/join-current-and-next-line
"J" #'join-line)
+(mm-keymap-set-repeating global-map
+ "n" #'next-error
+ "p" #'previous-error)
+
(with-eval-after-load 'increment
(mm-keymap-set-repeating global-map
"d" #'decrement-number-at-point