summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-11-18 16:52:21 +0000
committerMatthew Lemon <matt@matthewlemon.com>2022-11-18 16:52:21 +0000
commit4791043fb8192907bca0f481e4ae240007eaf7c8 (patch)
tree170b417c7145880ac75d1d6bb02c1c61eb62cac7
parent2fb0ded6216e26dfc6fb5b781e371201bc6ffce6 (diff)
org-roam capture template
-rw-r--r--myinit.org27
1 files 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)