Integrate the daily note with org-roam and add org-roam capture key

This commit is contained in:
Jeremy Dormitzer 2023-09-26 10:20:44 -04:00
parent b8d7c67a97
commit aae7be3858

View File

@ -18,7 +18,9 @@
(find-file filename)
(goto-char (point-min))
(unless file-exists
(insert (format "* %s daily note"
(org-id-get-create)
(goto-char (point-max))
(insert (format "#+title: %s daily note"
(format-time-string "%Y-%m-%d")))
(newline))
(goto-char (point-max))))
@ -34,7 +36,8 @@
"CANCELLED(c)")))
(org-capture-templates `(("d" "Daily note" plain
(function org-find-daily-note)
"** %<%I:%M %p>")
"* %<%I:%M %p>")
("n" "Org-roam note" plain (function org-roam-capture))
("s" "Spotify task" entry
(file+headline ,(expand-file-name "~/org/todo.org") "Spotify")
"* TODO %i%?")