Fix #2810: org-roam-directory is reset
This commit is contained in:
parent
b3af9dbc3c
commit
4434abf1f4
1 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,10 @@
|
||||||
org-roam-find-file
|
org-roam-find-file
|
||||||
org-roam-switch-to-buffer
|
org-roam-switch-to-buffer
|
||||||
org-roam-graph-show)
|
org-roam-graph-show)
|
||||||
|
: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.
|
||||||
|
(defvar org-roam-directory nil)
|
||||||
:init
|
:init
|
||||||
(map! :after org
|
(map! :after org
|
||||||
:map org-mode-map
|
:map org-mode-map
|
||||||
|
@ -19,7 +23,8 @@
|
||||||
"g" #'org-roam-graph-show
|
"g" #'org-roam-graph-show
|
||||||
"i" #'org-roam-insert)
|
"i" #'org-roam-insert)
|
||||||
:config
|
:config
|
||||||
(setq org-roam-directory org-directory)
|
(unless org-roam-directory
|
||||||
|
(setq org-roam-directory org-directory))
|
||||||
(org-roam-mode +1))
|
(org-roam-mode +1))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue