aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-buffer-file.el
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
commitcd9e1dd61e53c13e2a6f56633fbaa43853932ab8 (patch)
tree981e1bbbc21afedd2758277d792f5843b38f2ac2 /modules/custom-buffer-file.el
parentdebd33f69d07117f2a46f3b8a03b86b9882896a6 (diff)
downloaddotemacs-cd9e1dd61e53c13e2a6f56633fbaa43853932ab8.tar.gz
dotemacs-cd9e1dd61e53c13e2a6f56633fbaa43853932ab8.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/custom-buffer-file.el')
-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