From d6731cf80028faa145ad27a96749a32f8b42b8db Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Fri, 18 Sep 2026 12:49:05 -0400 Subject: [PATCH] feat(doom): stamp :ID: (org-id-new) on captured Todo/Event templates New items get a live org ID at capture so they're linkable as org-roam nodes and horizon properties without a separate stamp step. Event template also gains the TODO keyword. --- doom/.config/doom/README.org | 4 ++-- doom/.config/doom/config.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index 91e03a0..1addd5f 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -731,7 +731,7 @@ Each line jumps to the file (org-hd-marker on the first headline)." ("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks") "* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) ("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks") - "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) + "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i" :prepend t) ("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks") "* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) ("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks") @@ -746,7 +746,7 @@ Each line jumps to the file (org-hd-marker on the first headline)." ("w" "Question" entry (file+olp +org-capture-notes-file "Questions") "* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") ("e" "Event" entry (file+olp +org-capture-todo-file "Events") - "* %? %^t\n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") + "* TODO %? %^t\n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i") ;; Calendar event capture for gnus-icalendar (its insinuate appends a ;; "#" template; we declare it here so it survives independent of load order ;; and its name dedup-guard skips appending a duplicate). diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index e7700a0..d78cefc 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -576,7 +576,7 @@ Each line jumps to the file (org-hd-marker on the first headline)." ("ti" "Idea" entry (file+olp +org-capture-todo-file "Tasks") "* IDEA %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) ("tt" "Todo" entry (file+olp +org-capture-todo-file "Tasks") - "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) + "* TODO %? \n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i" :prepend t) ("tw" "Wait" entry (file+olp +org-capture-todo-file "Tasks") "* WAIT %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i" :prepend t) ("tp" "Task at point" entry (file+olp +org-capture-todo-file "Tasks") @@ -591,7 +591,7 @@ Each line jumps to the file (org-hd-marker on the first headline)." ("w" "Question" entry (file+olp +org-capture-notes-file "Questions") "* [?] %? \n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") ("e" "Event" entry (file+olp +org-capture-todo-file "Events") - "* %? %^t\n:PROPERTIES:\n:CREATED: %U\n:END:\n%a\n%i") + "* TODO %? %^t\n:PROPERTIES:\n:CREATED: %U\n:ID: %(org-id-new)\n:END:\n%a\n%i") ;; Calendar event capture for gnus-icalendar (its insinuate appends a ;; "#" template; we declare it here so it survives independent of load order ;; and its name dedup-guard skips appending a duplicate).