From 1cd7438f1f7e1f32ab1654243a98a55891069ac5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 31 Oct 2019 23:09:26 -0400 Subject: [PATCH] lang/org: add journal org-capture template --- modules/lang/org/config.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 05da22aeb..d33fce11d 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -39,6 +39,12 @@ target file. Is relative to `org-directory', unless it is absolute. Is used in Doom's default `org-capture-templates'.") +(defvar +org-capture-journal-file "journal.org" + "Default target for storing timestamped journal entries. + +Is relative to `org-directory', unless it is absolute. Is used in Doom's default +`org-capture-templates'.") + (defvar +org-capture-projects-file "projects.org" "Default, centralized target for org-capture templates.") @@ -248,6 +254,9 @@ I like: ("n" "Personal notes" entry (file+headline +org-capture-notes-file "Inbox") "* %u %?\n%i\n%a" :prepend t) + ("j" "Journal" entry + (file+datetree +org-capture-journal-file "Inbox") + "* %U %?\n%i\n%a" :prepend t) ;; Will use {project-root}/{todo,notes,changelog}.org, unless a ;; {todo,notes,changelog}.org file is found in a parent directory.