aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-13 12:12:32 -0500
committerCraig Jennings <c@cjennings.net>2026-06-13 12:12:32 -0500
commit5794231cf1aa3a508a5dee65a6a5b586cf2a422e (patch)
tree0e607015f1180d90974ec38646079c113aff8c7d /modules
parentd2e815d6387a5213b1c2d42ad07b0d3e2a20bb88 (diff)
downloaddotemacs-5794231cf1aa3a508a5dee65a6a5b586cf2a422e.tar.gz
dotemacs-5794231cf1aa3a508a5dee65a6a5b586cf2a422e.zip
fix(keys): destructive delete on capital D, diff on lowercase d
C-; b d now runs cj/diff-buffer-with-file (the op I hit most, comparing a buffer against the saved file) and C-; b D runs cj/delete-buffer-and-file. The destructive command sat on the easy lowercase key and diff on the capital. A keymap-lookup test guards the swap.
Diffstat (limited to 'modules')
-rw-r--r--modules/custom-buffer-file.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/custom-buffer-file.el b/modules/custom-buffer-file.el
index 25b4a418..84faf01d 100644
--- a/modules/custom-buffer-file.el
+++ b/modules/custom-buffer-file.el
@@ -512,8 +512,8 @@ Signals an error if:
"m" #'cj/move-buffer-and-file
"r" #'cj/rename-buffer-and-file
"p" #'cj/copy-buffer-source-as-kill
- "d" #'cj/delete-buffer-and-file
- "D" #'cj/diff-buffer-with-file
+ "d" #'cj/diff-buffer-with-file
+ "D" #'cj/delete-buffer-and-file
"c" cj/copy-buffer-content-map
"n" #'cj/copy-buffer-name
"l" #'cj/copy-link-to-buffer-file