From c4e9232f297ffda4443477c589f29052178d2c87 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 22 Oct 2025 12:27:05 -0500 Subject: 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. --- modules/custom-datetime.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/custom-datetime.el') 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. -- cgit v1.2.3