diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-11-18 16:52:21 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-11-18 16:52:21 +0000 |
commit | 4791043fb8192907bca0f481e4ae240007eaf7c8 (patch) | |
tree | 170b417c7145880ac75d1d6bb02c1c61eb62cac7 | |
parent | 2fb0ded6216e26dfc6fb5b781e371201bc6ffce6 (diff) |
org-roam capture template
-rw-r--r-- | myinit.org | 27 |
1 files changed, 16 insertions, 11 deletions
@@ -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) |