-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Set a different org-roam-directory in the server #8
Comments
Thank you! The server is using org-roam functions. Doesn't changing locals affect these functions? For example; org-roam-server/org-roam-server.el Line 86 in 5c830dd
|
Yes, org-roam-db-query connects all the |
What is your way of creating and setting the second db. So I can test it while developing it. |
Inside the folder that will contain the second database, I make a file called ((nil . ((eval . (setq-local org-roam-directory (expand-file-name "./")))
))) The rest is managed by org-roam, when I create new files or rebuild the database from dired or a file inside that directory. |
👋 Is there a workaround for this? |
You can use tags and then you can use filtering to only show one. |
The following settings achieve what you want:
|
Hello, I applied your settings in one local directory. It works because I noticed Then, I wonder what becomes the (use-package org-roam
:ensure t
:hook
(after-init . org-roam-mode)
:custom
(org-roam-db-location "c:/Users/xxx/org-roam/org-roam.db")
(org-roam-directory "d:/xxx/Documents/org-roam/") Thanks to your post, these initial settings seem no more relevant. Also, because your post allows to have directory based settings for Regards |
It would be cool if the server could read local variables, like org-roam does, by being launched in the browser from emacs or set a custom org-roam directory from the browser, if one has more than one org-roam-directory, for instance defined in
.dir-locals.el
.Yours is a wonderful addition to the nascent and expanding org-roam ecosystem. Thanks.
The text was updated successfully, but these errors were encountered: