1
0
Fork 0

fix(emacs): include id in org-roam filenames

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-02-23 01:44:15 -05:00
parent 4ee1780708
commit 3a70182408
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -46,10 +46,10 @@
"* %i%? \n %U"))) "* %i%? \n %U")))
(setq org-roam-capture-templates (setq org-roam-capture-templates
'(("n" "default" plain "%?" '(("n" "default" plain "%?"
:target (file+head "${slug}.org" "#+title: ${title}\n") :target (file+head "${slug}:${id}.org" "#+title: ${title}\n")
:unnarrowed t) :unnarrowed t)
("N" "encrypted" plain "%?" ("N" "encrypted" plain "%?"
:target (file+head "${slug}.org.gpg" "#+title: ${title}\n") :target (file+head "${slug}:${id}.org.gpg" "#+title: ${title}\n")
:unnarrowed t))) :unnarrowed t)))
(setq org-refile-targets '(("~/org/gtd.org" :maxlevel . 3) (setq org-refile-targets '(("~/org/gtd.org" :maxlevel . 3)
("~/org/someday.org" :level . 1) ("~/org/someday.org" :level . 1)