aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-22 20:20:25 -0500
committerCraig Jennings <c@cjennings.net>2026-05-22 20:20:25 -0500
commit91a9d70ee4a9e8c11bcefb81b2cb3998650099eb (patch)
tree93bc1a520808f56525666ff6ef1b4eb7a2b46234 /modules
parentb8475c7f08655815bd1a7fc7b11b73e84f9ff557 (diff)
downloaddotemacs-91a9d70ee4a9e8c11bcefb81b2cb3998650099eb.tar.gz
dotemacs-91a9d70ee4a9e8c11bcefb81b2cb3998650099eb.zip
refactor(org): give org-log-done a single home
`org-log-done` was set in two places: `cj/org-todo-settings` in org-config.el set it nil, and org-roam-config.el's `:config` set it to 'time. Whichever module loaded last won, so the effective value was load-order-dependent and fragile. I set it once in `cj/org-todo-settings` and dropped the org-roam-config setter, leaving a comment at the old site so it doesn't creep back. The value is 'time rather than nil because the dated-completion workflow wants a CLOSED timestamp stamped on every TODO->DONE.
Diffstat (limited to 'modules')
-rw-r--r--modules/org-config.el2
-rw-r--r--modules/org-roam-config.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index 31ed7f6c1..bd51828a9 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -117,7 +117,7 @@
(setq org-deadline-warning-days 7) ;; warn me w/in a week of deadlines
(setq org-treat-insert-todo-heading-as-state-change nil) ;; log task creation
(setq org-log-into-drawer nil) ;; don't log into drawer
- (setq org-log-done nil) ;; don't log completions
+ (setq org-log-done 'time) ;; record a CLOSED timestamp on TODO->DONE
;; inherit parents properties (sadly not schedules or deadlines)
(setq org-use-property-inheritance t))
diff --git a/modules/org-roam-config.el b/modules/org-roam-config.el
index 0382976b8..da4b0657a 100644
--- a/modules/org-roam-config.el
+++ b/modules/org-roam-config.el
@@ -61,7 +61,7 @@
:map org-mode-map
("C-M-i" . completion-at-point))
:config
- (setq org-log-done 'time)
+ ;; org-log-done is set once in org-config.el (cj/org-todo-settings).
(setq org-agenda-timegrid-use-ampm t)
(when (fboundp 'cj/build-org-refile-targets)