lang/org: add journal org-capture template

This commit is contained in:
Henrik Lissner 2019-10-31 23:09:26 -04:00
parent 040fcfcffa
commit 1cd7438f1f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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.