deft/journal/2020-05-11--08-48-25Z--test_org_roam_template.org
Yann Esposito (Yogsototh) 41915471b4
notes/saves
2020-05-18 00:38:40 +02:00

673 B

Test org-roam-templates

tags :: roam org-mode

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)))