Change the default filename for Org Roam nodes

This commit is contained in:
Gergely Polonkai 2023-08-30 17:02:56 +02:00
parent fbf8bc0270
commit 71b3e75c22
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
1 changed files with 5 additions and 0 deletions

View File

@ -1309,6 +1309,11 @@ Lets see if i can get my brain more organised this way…
(org-roam-directory (file-truename (expand-file-name "roam" org-directory)))
(org-roam-dailies-directory (file-truename (expand-file-name "roam/journal" org-directory)))
(org-roam-completion-everywhere t)
(org-roam-capture-templates '(("d" "default" plain "\n%?"
:target (file+head
"${slug}-%<%Y%m%d%H%M%S>.org"
"#+title: ${title}")
:unnarrowed t)))
(org-roam-dailies-capture-templates '(
("d" "default" entry "* %<%H:%M>: %?"
:if-new (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n"))))