configs/emacs: setup some roam templates

This commit is contained in:
Aaron Bieber 2024-09-18 13:44:15 -06:00
parent 525cbc99c7
commit d4f9521c4d
No known key found for this signature in database

View File

@ -656,6 +656,16 @@ Custom agenda commands for various things.
:after org :after org
:custom :custom
(org-roam-directory (file-truename "~/org-roam/")) (org-roam-directory (file-truename "~/org-roam/"))
(org-roam-capture-templates
'(("d" "default" plain
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n")
:unnarrowed t)
("b" "book" plain
"- Author: /%^{Author}/\n- Year: /%^{Year}/\n\n* Highlights / Notes\n"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+date: %U\n#+filetags: :Book:\n")
:unnarrowed t)
))
:bind (("C-c n l" . org-roam-buffer-toggle) :bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find) ("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph) ("C-c n g" . org-roam-graph)