summaryrefslogtreecommitdiff
path: root/modules/custom-datetime.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-22 12:27:05 -0500
committerCraig Jennings <c@cjennings.net>2025-10-22 12:27:05 -0500
commitc4e9232f297ffda4443477c589f29052178d2c87 (patch)
treef4c50c999bf18a57e08c439ad244b23b006d0730 /modules/custom-datetime.el
parent2a543ea6a0fd018a24008fba514a6967c3f62cfb (diff)
feat: undead-buffers: Add `cj/make-buffer-undead` function and tests
Introduce a new function `cj/make-buffer-undead` that appends a buffer name to the `cj/undead-buffer-list`, preventing it from being killed. This comes along with a suite of tests to check various scenarios and edge cases for handling undead buffers. Additionally, add tests for related functions: `cj/kill-buffer-or-bury-alive`, `cj/kill-buffer-and-window`, and others to ensure they correctly manage buffers, particularly with undead-status considerations. Refactor `undead-buffer-list` naming for consistency and clarity in the module.
Diffstat (limited to 'modules/custom-datetime.el')
-rw-r--r--modules/custom-datetime.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/custom-datetime.el b/modules/custom-datetime.el
index dd15daa0..c195ebc2 100644
--- a/modules/custom-datetime.el
+++ b/modules/custom-datetime.el
@@ -106,8 +106,6 @@ Use `readable-date-format' for formatting."
;; ------------------------------ Date Time Keymap -----------------------------
-;; Date/time insertion prefix and keymap
-
(defvar-keymap cj/datetime-map
:doc "Keymap for date/time insertions."
"r" #'cj/insert-readable-date-time
@@ -118,5 +116,8 @@ Use `readable-date-format' for formatting."
"D" #'cj/insert-readable-date )
(keymap-set cj/custom-keymap "d" cj/datetime-map)
+(with-eval-after-load 'which-key
+ (which-key-add-key-based-replacements "C-; d" "date/time insertion menu"))
+
(provide 'custom-datetime)
;;; custom-datetime.el ends here.