From 3a7018240814106462c2668d16121c637d688d86 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Fri, 23 Feb 2024 01:44:15 -0500 Subject: [PATCH] fix(emacs): include `id` in org-roam filenames Signed-off-by: Lucas Sta Maria --- .emacs.d/include/orgconfig.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/include/orgconfig.el b/.emacs.d/include/orgconfig.el index 8d01ce7..f4242f7 100644 --- a/.emacs.d/include/orgconfig.el +++ b/.emacs.d/include/orgconfig.el @@ -46,10 +46,10 @@ "* %i%? \n %U"))) (setq org-roam-capture-templates '(("n" "default" plain "%?" - :target (file+head "${slug}.org" "#+title: ${title}\n") + :target (file+head "${slug}:${id}.org" "#+title: ${title}\n") :unnarrowed t) ("N" "encrypted" plain "%?" - :target (file+head "${slug}.org.gpg" "#+title: ${title}\n") + :target (file+head "${slug}:${id}.org.gpg" "#+title: ${title}\n") :unnarrowed t))) (setq org-refile-targets '(("~/org/gtd.org" :maxlevel . 3) ("~/org/someday.org" :level . 1)