deft/org-roam.bak/2020-05-11--08-48-25Z--test_org_roam_template.org

20 lines
790 B
Org Mode
Raw Normal View History

2020-05-17 22:38:40 +00:00
#+TITLE: Test org-roam-templates
#+Author: Yann Esposito
2020-06-05 11:34:56 +00:00
tags :: [[file:20200428130708-roam.org][roam]] [[file:20200428130658-org_mode.org][org-mode]] [[file:2020-06-05--09-01-34Z--org_roam.org][org-roam]] [[file:2020-06-05--09-02-50Z--zettelkasten.org][zettelkasten]]
2020-05-17 22:38:40 +00:00
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.
#+begin_src elisp
(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)))
#+end_src