Do not overwrite org-roam-db-location

This commit is contained in:
Ralf Beckmann 2020-11-11 18:35:54 +01:00
parent 3ecf95ff35
commit f3a4c27aac

View file

@ -17,9 +17,11 @@
org-roam-dailies-tomorrow org-roam-dailies-tomorrow
org-roam-dailies-yesterday) org-roam-dailies-yesterday)
:preface :preface
;; Set this to nil so we can later detect whether the user has set a custom ;; Set this to nil so we can later detect if the user has set custom values
;; directory for it, and default to `org-directory' if they haven't. ;; for these variables. If not, default values will be set in the :config
;; section.
(defvar org-roam-directory nil) (defvar org-roam-directory nil)
(defvar org-roam-db-location nil)
:init :init
(map! :after org (map! :after org
:map org-mode-map :map org-mode-map
@ -42,7 +44,8 @@
(file-truename (file-truename
(expand-file-name (or org-roam-directory "roam") (expand-file-name (or org-roam-directory "roam")
org-directory))) 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 org-roam-verbose nil ; https://youtu.be/fn4jIlFwuLU
;; Make org-roam buffer sticky; i.e. don't replace it when opening a ;; Make org-roam buffer sticky; i.e. don't replace it when opening a
;; file with an *-other-window command. ;; file with an *-other-window command.