deft/journal/2020-05-11--08-48-25Z--test_org_roam_template.org
Yann Esposito (Yogsototh) 203a36aff4
save
2020-06-05 13:34:56 +02:00

790 B

Test org-roam-templates

tags :: roam org-mode org-roam zettelkasten

https://github.com/org-roam/org-roam/blob/master/org-roam-capture.el#L82

I've been wondering how to make org-roam use the templates.

Just needed to do that.

(setq org-roam-capture-templates
        '(("d" "default" plain (function org-roam--capture-get-point)
           "%?"
           :file-name "%(format-time-string \"%Y-%m-%d--%H-%M-%SZ--${slug}\" (current-time) t)"
           :head "#+TITLE: ${title}\n#+Author: Yann Esposito\n\ntags ::\nsource ::\n"
           :unnarrowed t)))