(docs): add documentation for multiple org-roam directories (#187)

master
Herbert Jones 6 years ago committed by GitHub
parent f1fb9f4680
commit b382b1f21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      doc/configuration.md

@ -22,6 +22,22 @@ containing all your Org files:
Every Org file, at any level of nesting, within `/path/to/org/` is
considered part of the Org-roam ecosystem.
### Having More Than One Org-roam Directory
Emacs supports customizing variables by directory, so that all files
in a directory and subdirectories will have the same custom
settings. It does this by checking for a file named `.dir-locals.el`
in that directory. This file can override the `org-roam-directory`
variable and all files within that directory will be treated as
their own separate set of Org-roam files.
Here is an example `.dir-locals.el` file that would be placed in a
second Org-roam directory.
```emacs-lisp
((nil . ((eval . (setq-local org-roam-directory (locate-dominating-file default-directory ".dir-locals.el"))))))
```
## Org-roam Buffer
The Org-roam buffer defaults to popping up from the right. You may

Loading…
Cancel
Save