From f3a4c27aac0210ac31c53f29e7eca33ea64e2e15 Mon Sep 17 00:00:00 2001 From: Ralf Beckmann Date: Wed, 11 Nov 2020 18:35:54 +0100 Subject: [PATCH] Do not overwrite org-roam-db-location --- modules/lang/org/contrib/roam.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/lang/org/contrib/roam.el b/modules/lang/org/contrib/roam.el index 07f174663..6b37944b1 100644 --- a/modules/lang/org/contrib/roam.el +++ b/modules/lang/org/contrib/roam.el @@ -17,9 +17,11 @@ org-roam-dailies-tomorrow org-roam-dailies-yesterday) :preface - ;; Set this to nil so we can later detect whether the user has set a custom - ;; directory for it, and default to `org-directory' if they haven't. + ;; Set this to nil so we can later detect if the user has set custom values + ;; for these variables. If not, default values will be set in the :config + ;; section. (defvar org-roam-directory nil) + (defvar org-roam-db-location nil) :init (map! :after org :map org-mode-map @@ -42,7 +44,8 @@ (file-truename (expand-file-name (or org-roam-directory "roam") org-directory))) - org-roam-db-location (concat doom-etc-dir "org-roam.db") + org-roam-db-location (or org-roam-db-location + (concat doom-etc-dir "org-roam.db")) org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU ;; Make org-roam buffer sticky; i.e. don't replace it when opening a ;; file with an *-other-window command.