Hello all. I’m trying to use org-roam templates and have the following configuration, but I cannot get org-roam-node-find
to prompt for the different templates. I’ve tried some other individuals’ templates, in case I made an error, and have part of the SystemCrafters example in right now. I also tried adding in:
:init
(setq org-roam-v2-ack t)
but that did nothing. I was thinking maybe it needed to be specified, but I should already be using the latest org-roam
. Creating a node works, but does the default without prompting for the other templates. There are no messages or warnings.
Could my templates not be working due to the org-roam-directory
setup I have or is there something else that I have missed? The closest issue I could find to mine was this: Reddit - Dive into anything, but they were using Doom Emacs and I am using vanilla, so slightly different issue. I’ve also been trying to learn from similar setups from the following sources:
Where are templates defined
Capturing Notes Efficiently with Org Roam - System Crafters
Org-roam User Manual
Any help is much appreciated!
Current config:
(use-package org-roam
:bind (("C-c n l" . org-roam-buffer-toggle)
("C-c n f" . org-roam-node-find)
("C-c n i" . org-roam-node-insert)
:map org-mode-map
("C-M-i" . completion-at-point))
:custom
(setq org-roam-complete-everywhere t)
(setq org-roam-capture-templates
'(
("d" "default" plain "%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n")
:unnarrowed t)
("b" "book notes" plain
"\n* Source\n\nAuthor: %^{Author}\nTitle: ${title}\nYear: %^{Year}\n\n* Summary\n\n%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
:unnarrowed t)
("p" "project" plain "* Goals\n\n%?\n\n* Tasks\n\n** TODO Add initial tasks\n\n* Dates\n\n"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n#+filetags: Project")
:unnarrowed t)
)
)
:config
;; Change path for PC
(cond ((string-equal (system-name) "weda")
(setq org-roam-directory "~/Syncthing/org-roam/"))
((string-equal (system-name) "tyr")
(setq org-roam-directory "~/Syncthing/org-roam/"))
((string-equal (system-name) "DESKTOP-FIS3P5B")
(setq org-roam-directory "c:/Users/Church/Documents/Syncthing/org-roam/")))
(cond ((string-equal (system-name) "weda")
(setq org-roam-db-location "~/Syncthing/org-roam/org-roam.db"))
((string-equal (system-name) "tyr")
(setq org-roam-db-location "~/Syncthing/org-roam/org-roam.db"))
((string-equal (system-name) "DESKTOP-FIS3P5B")
(setq org-roam-db-location "c:/Users/Church/Documents/Syncthing/org-roam/org-roam.db")))
(org-roam-setup))