summaryrefslogtreecommitdiff
path: root/modules/config-utilities.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/config-utilities.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/config-utilities.el')
-rw-r--r--modules/config-utilities.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/config-utilities.el b/modules/config-utilities.el
index 60a8d602..d1538256 100644
--- a/modules/config-utilities.el
+++ b/modules/config-utilities.el
@@ -218,7 +218,6 @@ Recompile natively when supported, otherwise fall back to byte compilation."
(with-eval-after-load 'which-key
(which-key-add-key-based-replacements "C-c d i" "info on build/features/packages."))
-
(defvar cj--loaded-file-paths nil
"All file paths that are loaded.")
(defvar cj--loaded-packages-buffer "*loaded-packages*"
@@ -267,7 +266,6 @@ Recompile natively when supported, otherwise fall back to byte compilation."
(keymap-set cj/debug-config-keymap "i f" 'cj/info-loaded-features)
;; ------------------------------ Reload Init File -----------------------------
-;; it does what it says it does.
(defun cj/reload-init-file ()
"Reload the init file. Useful when modifying Emacs config."
@@ -287,7 +285,7 @@ Recompile natively when supported, otherwise fall back to byte compilation."
;; ------------------------ Validate Org Agenda Entries ------------------------
(defun cj/validate-org-agenda-timestamps ()
- "Scan all files in \='org-agenda-files\=' for invalid timestamps.
+ "Scan all files in `org-agenda-files' for invalid timestamps.
Checks DEADLINE, SCHEDULED, TIMESTAMP properties and inline timestamps in
headline contents. Generates an Org-mode report buffer with links to problematic
entries, property/type, and raw timestamp string."