"First and foremost, I kindly request your patience as I am new to Emacs and its extensions, especially Org-roam. Before I proceed, let me explain something.
I have created a directory system for my notes, where:
~/Org/
├── 01_Diary/
├── 02_Compendium/
├── 03_Projects/
├── 04_References/
└── 99_Resources/
- 01_Diary: This directory is for daily journal entries, one note for each day.
- 02_Compendium: This directory can contain notes about personal ideas, thoughts, to-do lists, and more.
- 03_Projects: Notes related to specific projects I’m working on. Each project can have its own subdirectory.
- 04_References: This directory can contain notes about articles, books, or any other reference materials.
- 99_Resources: This directory can hold any additional resources you might need, such as note templates, scripts, etc.
I have managed to configure the directory settings for “01_Diary” in Org-Roam, and it’s working perfectly, as shown below:
;; Diary Notes Configuration
(defvar org-roam-dailies-directory)
(defvar org-roam-dailies-capture-templates)
(setq org-roam-dailies-directory "01_Diary/")
(setq org-roam-dailies-capture-templates
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n"))))
Currently, I am facing an issue that I can’t resolve. When I use the “M-x org-roam-capture” command, it creates a note in the main directory “~/Org” when I actually want it to be created and saved in the “02_Compendium” directory. Here’s the code I’m using:
;; Compendium Notes Configuration
(setq org-roam-capture-templates
'(("c" "Compêndio" plain (function org-roam--capture-get-point)
"%?"
:file-name "02_Compendium/%<%Y%m%d%H%M%S>-${slug}"
:head "#+title: ${title}\n"
:unnarrowed t)))
I’m struggling to resolve this issue. Could you please help me?"