From 997ddcbf4b0373bb449d09f1db6cf5de6983de5e Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Sun, 11 Apr 2021 14:49:12 +0800 Subject: [PATCH] (docs): update org-roam dir-locals use absolute path instead of relative path to prevent errors --- doc/org-roam.org | 4 ++-- doc/org-roam.texi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/org-roam.org b/doc/org-roam.org index bf12771..6b94b55 100644 --- a/doc/org-roam.org +++ b/doc/org-roam.org @@ -1622,8 +1622,8 @@ variable using directory-local variables. This is what ~.dir-locals.el~ may contain: #+BEGIN_SRC emacs-lisp - ((nil . ((org-roam-directory . ".") - (org-roam-db-location . "./org-roam.db")))) + ((nil . ((org-roam-directory . (expand-file-name ".")) + (org-roam-db-location . (expand-file-name "./org-roam.db"))))) #+END_SRC All files within that directory will be treated as their own separate set of diff --git a/doc/org-roam.texi b/doc/org-roam.texi index 2bf82ad..3dbfaee 100644 --- a/doc/org-roam.texi +++ b/doc/org-roam.texi @@ -2126,8 +2126,8 @@ variable using directory-local variables. This is what @code{.dir-locals.el} may contain: @lisp -((nil . ((org-roam-directory . ".") - (org-roam-db-location . "./org-roam.db")))) +((nil . ((org-roam-directory . (expand-file-name ".")) + (org-roam-db-location . (expand-file-name "./org-roam.db"))))) @end lisp All files within that directory will be treated as their own separate set of