commit 9399cba4e3824bc1e2ed76e33ad9ae592b117faf
parent cb9a37623760d04e58b772c61ac715cecd4349ae
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 2 Sep 2024 04:51:28 +0200
tools/emacs: add a capture templates for journal
Allow to capture things in today's journal entry. I'll need to verify
if it works when I did not create the file but…
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/emacs/config/config-org.el b/tools/emacs/config/config-org.el
@@ -274,6 +274,11 @@ file which do not already have one."
"* %a\n%U\n%?\n%i"
:empty-lines 1))
(add-to-list 'org-capture-templates
+ `("d" "daily entry" entry
+ (file ,(car (denote-journal-extras--entry-today)))
+ "* %a\n%U\n%?\n%i"
+ :empty-lines 1))
+ (add-to-list 'org-capture-templates
`("t" "Tasks"))
(add-to-list 'org-capture-templates
`("tt" "New task" entry