roam: update capture templates

This commit is contained in:
Max Schlueter 2024-05-31 17:20:27 +02:00
parent 05dd325fda
commit 70e56bfbaf

38
roam.el
View File

@ -2,47 +2,19 @@
(after! org-roam
(setq org-roam-capture-templates
'(("m" "main" plain
'(("d" "default" plain
"%?"
:target
(file+head
"main/${slug}.org"
"pages/${slug}.org"
"#+title: ${title}\n")
:unnarrowed t)
("c" "cheatsheet" plain
"%?"
:target
(file+head
"cheatsheet/${slug}.org"
"#+title: ${title}\n")
:unnarrowed t)
("w" "worksheet" plain
"%?"
:target
(file+head
"worksheet/${slug}.org"
"#+title: ${title}\n")
:unnarrowed t)
("p" "person" plain
"%?"
:target
(file+head
"person/${slug}.org"
"#+title: ${title}\n")
:unnarrowed t)
("n" "literature note" plain
"%?"
:target
(file+head
"%(concat
(when citar-org-roam-subdir (concat citar-org-roam-subdir \"/\")) \"${citekey}.org\")"
"#+title: ${title}\n")
:unnarrowed t)))
))
(setq org-roam-dailies-capture-templates
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n"))))
:target (file "%<%Y_%m_%d>.org"))))
;; "#+title: %<%Y-%m-%d>\n"))))
(map! :leader
:desc "Capture today" "n n" #'org-roam-dailies-capture-today)
(setq org-roam-directory (concat org-directory "roam/")