diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 0f0a6063d..0c539bbe3 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -67,7 +67,8 @@ Is relative to `org-directory', unless it is absolute. Is used in Doom's default (defun +org-init-org-directory-h () (unless org-directory (setq-default org-directory "~/org")) - (setq org-id-locations-file (expand-file-name ".orgids" org-directory))) + (unless org-id-locations-file + (setq org-id-locations-file (expand-file-name ".orgids" org-directory)))) (defun +org-init-agenda-h () @@ -1047,6 +1048,7 @@ compelling reason, so..." ;; Set to nil so we can detect user changes to them later (and fall back on ;; defaults otherwise). (defvar org-directory nil) + (defvar org-id-locations-file nil) (defvar org-attach-id-dir nil) (setq org-publish-timestamp-directory (concat doom-cache-dir "org-timestamps/")