:PROPERTIES: :ID: 4d57b529-9ca8-4c6e-82e0-9f9c987ce2e8 :END: #+TITLE: Test org-roam-templates #+Author: Yann Esposito tags :: [[id:1a12a62f-f96f-48de-b634-bd548654c238][roam]] [[id:5579f7b0-3b00-4751-9211-9b9381481954][org-mode]] [[id:e0d4b962-b16e-499e-9c69-bdb196793e68][org-roam]] [[id:5e257538-beca-40de-8b8f-0733d241c96a][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. #+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