Looking for Info to keep separate notes

Hi,
I am interested in maintaining separate notes for different topics

  • one directory structure for Finance
  • one directory structure for Chemistry.

I searched in User manual and How to Roam Discourse topics and could not find specifics. I may have overlooked or not used right keywords to search, can someone please point me to some resources/live examples which follow this structure.

I currently have below in my .emacs which is common for all topics.

(setq org-roam-directory “~/org-roam”)
(add-hook 'after-init-hook 'org-roam-mode)

Thanks in advance,

Hi,
the most effortless way would be to use subdirectories in your org-roam-directory. Automation can be achieved by using different org-roam-capture-templates for different topics:

`(setq org-roam-capture-templates
     '(("f" "Finance notes" plain #'org-roam-capture--get-point "Template"
        :file-name "finance/${slug}" ;; notes will go into subdirectory "finance"
        ...)
       ("c" "Chemistry notes" plain #'org-roam-capture--get-point "Template"
        :file-name "chemistry/${slug}" ;; notes will go into subdirectory "chemistry"
        ...)))

Not related, but it is generally safer to load org-roam-mode after Org has been loaded, e.g. in org-load-hook.

Thank you for helpful tip, I will try this which is what I was trying to accomplish. It is structured since notes are in one parent directory.

1 Like

Depending on how much separation you want, my method of reusing org categories as roam-tags may also be interesting for you: What's the difference between org tags and org-roam tags? - #4 by real-or-random