From 4791043fb8192907bca0f481e4ae240007eaf7c8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 18 Nov 2022 16:52:21 +0000 Subject: org-roam capture template --- myinit.org | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/myinit.org b/myinit.org index 4b382d9..78dd7ab 100644 --- a/myinit.org +++ b/myinit.org @@ -610,19 +610,24 @@ If failed try to complete the common part with `company-complete-common'" :custom (org-roam-dailies-directory "daily/") (org-roam-directory "~/org-roam") + (org-roam-capture-ref-templates + '(("d" "default" plain + "%?" + :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") + :unnarrowed t))) (org-roam-capture-templates - '(("d" "default" plain - "%?" - :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") - :unnarrowed t) - ("e" "encrypted" plain - "%?" - :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org.gpg" "#+title: ${title}\n") - :unnarrowed t))) + '(("d" "default" plain + "%?" + :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") + :unnarrowed t) + ("e" "encrypted" plain + "%?" + :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org.gpg" "#+title: ${title}\n") + :unnarrowed t))) (org-roam-dailies-capture-templates - '(("d" "default" entry "* %<%T>: %?" - :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n") - :unnarrowed t))) + '(("d" "default" entry "* %<%T>: %?" + :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n") + :unnarrowed t))) :bind (("C-c n l" . org-roam-buffer-toggle) ("C-c n f" . org-roam-node-find) ("C-c n i" . org-roam-node-insert) -- cgit v1.2.3