Merge pull request #4255 from RBckmnn/OrgRoamDbLocation

Do not overwrite user's value of org-roam-db-location
This commit is contained in:
Henrik Lissner 2020-11-11 14:25:45 -05:00 committed by GitHub
commit 1d766bf873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,9 +17,11 @@
org-roam-dailies-find-tomorrow
org-roam-dailies-find-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
@ -47,7 +49,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.