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-tomorrow
org-roam-dailies-find-yesterday) org-roam-dailies-find-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
@ -47,7 +49,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.