added capture templates

dev-docs
Moritz Böhme 2021-08-27 19:12:40 +02:00
parent c61b43e1a2
commit e435c07ad6
1 changed files with 22 additions and 0 deletions

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)
)
)
)