summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-01 16:49:15 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-01 16:49:15 +0100
commitea7f7f15d29f42263822db68fe8a8752749a7b35 (patch)
treea19943b45dbf7790bcd4dac103a1a86dce671fd2 /.config
parentc38c3a4c67d8b108de8951a395d3faf8bef7b733 (diff)
emacs: Remove some commands
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/editing.el23
-rw-r--r--.config/emacs/modules/mm-keybindings.el2
2 files changed, 0 insertions, 25 deletions
diff --git a/.config/emacs/editing.el b/.config/emacs/editing.el
index 66a5953..e400588 100644
--- a/.config/emacs/editing.el
+++ b/.config/emacs/editing.el
@@ -30,29 +30,6 @@ with the next one instead of the previous one."
(unless (or beg end) (not arg))
beg end))
-(defun e/transpose-previous-chars ()
- "Transpose the two characters preceeding point.
-This command is similar to `transpose-chars' except it transposes the
-two characters that preceed the point instead of the characters that
-surround it."
- (interactive "*")
- (save-excursion
- (backward-char)
- (transpose-chars 1)))
-
-(defun e/transpose-current-and-next-lines ()
- "Transpose the current and next lines.
-This command is similar to `transpose-lines' except it transposes the
-current and next lines instead of the current and previous lines. This
-maintains symmetry with `transpose-words'."
- (interactive "*")
- (let ((column (current-column)))
- (forward-line)
- (transpose-lines 1)
- (forward-line -1)
- (indent-region (pos-bol) (pos-eol))
- (move-to-column column)))
-
(defun e/mark-entire-word (&optional arg allow-extend)
"Mark ARG words beginning at point.
This command is a wrapper around `mark-word' that moves the point such
diff --git a/.config/emacs/modules/mm-keybindings.el b/.config/emacs/modules/mm-keybindings.el
index 746d95c..915d845 100644
--- a/.config/emacs/modules/mm-keybindings.el
+++ b/.config/emacs/modules/mm-keybindings.el
@@ -88,8 +88,6 @@ the first command is remapped to the second command."
mark-sexp e/mark-entire-sexp
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
yank e/yank)
(with-eval-after-load 'cc-vars