Fix org-daily capture template

This commit is contained in:
Jeremy Dormitzer 2024-06-13 13:49:23 -04:00
parent 5f63c40b97
commit 7aea6199cd

View File

@ -33,6 +33,8 @@ DATE should be in the format \"YYYY-MM-DD\". If called interactively, default to
(insert (format "#+title: %s daily note" date))
(newline))
(goto-char (point-max))))
(defun org-capture-daily-note ()
(org-find-daily-note (format-time-string "%Y-%m-%d")))
(org-babel-do-load-languages
'org-babel-load-languages
'((plantuml . t)))
@ -59,7 +61,7 @@ DATE should be in the format \"YYYY-MM-DD\". If called interactively, default to
"DONE(d)"
"CANCELLED(c)")))
(org-capture-templates `(("d" "Daily note" plain
(function org-find-daily-note)
(function org-capture-daily-note)
"* %<%I:%M %p>")
("n" "Org-roam note" plain (function org-roam-capture))
("h" "Hummingbird task" entry
@ -190,6 +192,6 @@ DATE should be in the format \"YYYY-MM-DD\". If called interactively, default to
:config
(general-def 'normal org-roam-backlinks-mode-map
"RET" #'org-open-at-point
"q" #'bury-buffer))
"q" #'quit-window))
(provide 'init-org)