From 13e2eefae1b55603fb62d604848a61e4cf77b658 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 2 Jan 2020 00:31:20 -0500 Subject: [PATCH] Move org-id-locations-file to org-directory It makes more sense to store this file where you keep your org files, rather than in Doom's .local files, which could be deleted for debugging, or local only to a specific machine. Also make ID links relative to org-directory, in case you use the same org library on a different system with different filesystem layout/system of symlinks. --- modules/lang/org/config.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 6acdecca4..34c49501b 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -933,11 +933,7 @@ compelling reason, so..." (setq org-directory "~/org/" org-attach-id-dir ".attach/" org-publish-timestamp-directory (concat doom-cache-dir "org-timestamps/") - org-preview-latex-image-directory (concat doom-cache-dir "org-latex/") - org-id-locations-file (concat doom-etc-dir "org-id-locations") - ;; Global ID state means we can have ID links anywhere (required by - ;; `org-brain') - org-id-track-globally t) + org-preview-latex-image-directory (concat doom-cache-dir "org-latex/")) (defvar org-modules '(;; ol-w3m @@ -1000,4 +996,10 @@ compelling reason, so..." (run-hooks 'org-load-hook)) :config + ;; Global ID state means we can have ID links anywhere. This is required for + ;; `org-brain', however. + (setq org-id-track-globally t + org-id-locations-file (concat org-directory ".orgids") + org-id-locations-file-relative t) + (add-hook 'org-open-at-point-functions #'doom-set-jump-h))