diff options
| author | Craig Jennings <c@cjennings.net> | 2025-11-24 03:36:01 -0800 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-11-24 03:36:01 -0800 |
| commit | 42a649d38043dfe5aee15e3fc2d6dcce4483cd40 (patch) | |
| tree | 973e7c3ac6d9cc928d32b2e5821f6111078a6c21 | |
| parent | 1752c6e58906721a47afc56e357b7fb1c0c8a5a1 (diff) | |
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.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
| -rw-r--r-- | modules/chrono-tools.el | 2 | ||||
| -rw-r--r-- | modules/custom-buffer-file.el | 3 | ||||
| -rw-r--r-- | modules/undead-buffers.el | 6 |
3 files changed, 7 insertions, 4 deletions
diff --git a/modules/chrono-tools.el b/modules/chrono-tools.el index 9929bad5..ab3a9890 100644 --- a/modules/chrono-tools.el +++ b/modules/chrono-tools.el @@ -18,7 +18,7 @@ (use-package time-zones :defer :commands time-zones - :bind ("C-x c" . time-zones)) + :bind ("M-C" . time-zones)) ;; Commented out old world-clock config while testing time-zone package above ;; (use-package time diff --git a/modules/custom-buffer-file.el b/modules/custom-buffer-file.el index 8825fdd6..b5740cd2 100644 --- a/modules/custom-buffer-file.el +++ b/modules/custom-buffer-file.el @@ -16,6 +16,7 @@ ;; and prints with face/syntax highlighting. ;; ;; Keybindings under ~C-; b~: +;; - ~C-; b k~ kill buffer and window (delete window, kill/bury buffer) ;; - Copy buffer content submenu at ~C-; b c~ ;; - ~C-; b c w~ copy whole buffer ;; - ~C-; b c t~ copy from beginning to point @@ -337,6 +338,7 @@ Signal an error if the buffer is not visiting a file." "c" cj/copy-buffer-content-map "n" #'cj/copy-buffer-name "l" #'cj/copy-link-to-buffer-file + "k" #'cj/kill-buffer-and-window "P" #'cj/print-buffer-ps "t" #'cj/clear-to-top-of-buffer "b" #'cj/clear-to-bottom-of-buffer @@ -360,6 +362,7 @@ Signal an error if the buffer is not visiting a file." "C-; b c t" "copy to top" "C-; b n" "copy buffer name" "C-; b l" "copy file link" + "C-; b k" "kill buffer and window" "C-; b P" "print to PS" "C-; b t" "clear to top" "C-; b b" "clear to bottom" 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." |
