Neu: org-Templates

This commit is contained in:
hansi
2026-04-08 07:11:17 +02:00
parent ac89ecc2df
commit 312add83fa
11 changed files with 132 additions and 12 deletions

23
lisp/init-org-r.el Normal file
View File

@@ -0,0 +1,23 @@
(require 'org-roam)
(setq org-roam-directory (file-truename "~/org"))
(org-roam-db-autosync-mode)
(setq org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head
"docs/${slug}.org"
"#+title: ${title}\n#+category: Docs\n")
:unnarrowed t)
("n" "note" plain
"%?"
:if-new (file+head
"notes/${slug}.org"
"#+title: ${title}\n#+category: Notes\n")
:unnarrowed t)))
(provide 'init-org-r)