added capture templates

This commit is contained in:
Moritz Böhme 2021-08-27 19:12:40 +02:00
parent c61b43e1a2
commit e435c07ad6

View file

@ -69,3 +69,25 @@
(add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode)) (add-to-list 'auto-mode-alist '("\\.pl\\'" . prolog-mode))
(setq org-roam-directory "~/org-roam")
(after! org-roam
:custom
(setq org-roam-capture-templates
'(
("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("s" "semester" plain (file "~/org-roam/templates/semester-template.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("m" "modul" plain (file "~/org-roam/templates/modul-template.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("D" "dozent" plain (file "~/org-roam/templates/dozent-template.org")
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
)
)
)