Deploying to gh-pages from @ 898295f4a0 🚀

This commit is contained in:
jethrokuan
2021-12-13 05:13:05 +00:00
parent 1fc42515da
commit fd2e05582e
3 changed files with 45 additions and 6 deletions

View File

@@ -2313,8 +2313,21 @@ variable using directory-local variables. This is what <code>.dir-locals.el</cod
contain: contain:
</p> </p>
<div class="lisp"> <div class="lisp">
<pre class="lisp">((nil . ((org-roam-directory . (expand-file-name &quot;.&quot;)) <pre class="lisp">((nil . ((org-roam-directory . &quot;/path/to/alt/org-roam/dir/org-roam-dir&quot;)
(org-roam-db-location . (expand-file-name &quot;./org-roam.db&quot;))))) (org-roam-db-location . &quot;/path/to/alt/org-roam-dir/org-roam.db&quot;))))
</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 &quot;.dir-locals.el&quot;))))
(eval . (setq-local
org-roam-db-location (expand-file-name &quot;org-roam.db&quot;
org-roam-directory))))))
</pre></div> </pre></div>
<p>All files within that directory will be treated as their own separate set of <p>All files within that directory will be treated as their own separate set of

View File

@@ -1382,8 +1382,21 @@ variable using directory-local variables. This is what ~.dir-locals.el~ may
contain: contain:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
((nil . ((org-roam-directory . (expand-file-name ".")) ((nil . ((org-roam-directory . "/path/to/alt/org-roam/dir/org-roam-dir")
(org-roam-db-location . (expand-file-name "./org-roam.db"))))) (org-roam-db-location . "/path/to/alt/org-roam-dir/org-roam.db"))))
#+END_SRC
Note ~org-roam-directory~ and ~org-roam-db-location~ should be an absolute path, not relative.
Alternatively, use ~eval~ if you wish to call functions:
#+BEGIN_SRC emacs-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))))))
#+END_SRC #+END_SRC
All files within that directory will be treated as their own separate set of All files within that directory will be treated as their own separate set of

View File

@@ -1935,8 +1935,21 @@ variable using directory-local variables. This is what @code{.dir-locals.el} may
contain: contain:
@lisp @lisp
((nil . ((org-roam-directory . (expand-file-name ".")) ((nil . ((org-roam-directory . "/path/to/alt/org-roam/dir/org-roam-dir")
(org-roam-db-location . (expand-file-name "./org-roam.db"))))) (org-roam-db-location . "/path/to/alt/org-roam-dir/org-roam.db"))))
@end lisp
Note @code{org-roam-directory} and @code{org-roam-db-location} should be an absolute path, not relative.
Alternatively, use @code{eval} if you wish to call functions:
@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))))))
@end lisp @end lisp
All files within that directory will be treated as their own separate set of All files within that directory will be treated as their own separate set of