aboutsummaryrefslogtreecommitdiff
path: root/modules/undead-buffers.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-24 03:36:01 -0800
committerCraig Jennings <c@cjennings.net>2025-11-24 03:36:01 -0800
commit0e08f9a0e2eef515da9e1fbb604fecac050739f1 (patch)
treefecf99594af3e29d98c119a05a6c46260bb97e1e /modules/undead-buffers.el
parent4249a453a0bceb724890bbeb6516154137c02244 (diff)
downloaddotemacs-0e08f9a0e2eef515da9e1fbb604fecac050739f1.tar.gz
dotemacs-0e08f9a0e2eef515da9e1fbb604fecac050739f1.zip
refactor(keybindings): reorganize time-zones and kill-buffer-and-window bindings
Move time-zones from C-x c to M-C for easier access. Move cj/kill-buffer-and-window from M-C to C-; b k to group with other buffer operations. Updated documentation and which-key labels.
Diffstat (limited to 'modules/undead-buffers.el')
-rw-r--r--modules/undead-buffers.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/undead-buffers.el b/modules/undead-buffers.el
index 50c9bb9c..fa09e04a 100644
--- a/modules/undead-buffers.el
+++ b/modules/undead-buffers.el
@@ -2,12 +2,12 @@
;;; Commentary:
;;
-;; This library allows for “burying” selected buffers instead of killing them.
+;; This library allows for "burying" selected buffers instead of killing them.
;; Since they won't be killed, I'm calling them "undead buffers".
;; The main function cj/kill-buffer-or-bury-alive replaces kill-buffer.
;;
;; Additional helper commands and key bindings:
-;; - M-C (=cj/kill-buffer-and-window=): delete this window and bury/kill its buffer.
+;; - C-; b k (=cj/kill-buffer-and-window=): delete this window and bury/kill its buffer.
;; - M-O (=cj/kill-other-window=): delete the next window and bury/kill its buffer.
;; - M-M (=cj/kill-all-other-buffers-and-windows=): kill or bury all buffers except
;; the current one and delete all other windows.
@@ -65,7 +65,7 @@ ARG is passed to `save-some-buffers'."
(unless (one-window-p)
(delete-window))
(cj/kill-buffer-or-bury-alive buf)))
-(keymap-global-set "M-C" #'cj/kill-buffer-and-window)
+;; Keybinding moved to custom-buffer-file.el (C-; b k)
(defun cj/kill-other-window ()
"Delete the next window and kill or bury its buffer."