mirror of
https://github.com/org-roam/org-roam
synced 2025-09-12 15:36:48 -05:00
Deploying to gh-pages from @ 898295f4a0
🚀
This commit is contained in:
17
manual.html
17
manual.html
@@ -2313,8 +2313,21 @@ variable using directory-local variables. This is what <code>.dir-locals.el</cod
|
||||
contain:
|
||||
</p>
|
||||
<div class="lisp">
|
||||
<pre class="lisp">((nil . ((org-roam-directory . (expand-file-name "."))
|
||||
(org-roam-db-location . (expand-file-name "./org-roam.db")))))
|
||||
<pre class="lisp">((nil . ((org-roam-directory . "/path/to/alt/org-roam/dir/org-roam-dir")
|
||||
(org-roam-db-location . "/path/to/alt/org-roam-dir/org-roam.db"))))
|
||||
</pre></div>
|
||||
|
||||
<p>Note <code>org-roam-directory</code> and <code>org-roam-db-location</code> should be an absolute path, not relative.
|
||||
</p>
|
||||
<p>Alternatively, use <code>eval</code> if you wish to call functions:
|
||||
</p>
|
||||
<div class="lisp">
|
||||
<pre class="lisp">((nil . ((eval . (setq-local
|
||||
org-roam-directory (expand-file-name (locate-dominating-file
|
||||
default-directory ".dir-locals.el"))))
|
||||
(eval . (setq-local
|
||||
org-roam-db-location (expand-file-name "org-roam.db"
|
||||
org-roam-directory))))))
|
||||
</pre></div>
|
||||
|
||||
<p>All files within that directory will be treated as their own separate set of
|
||||
|
Reference in New Issue
Block a user