mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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.
This commit is contained in:
@ -933,11 +933,7 @@ compelling reason, so..."
|
|||||||
(setq org-directory "~/org/"
|
(setq org-directory "~/org/"
|
||||||
org-attach-id-dir ".attach/"
|
org-attach-id-dir ".attach/"
|
||||||
org-publish-timestamp-directory (concat doom-cache-dir "org-timestamps/")
|
org-publish-timestamp-directory (concat doom-cache-dir "org-timestamps/")
|
||||||
org-preview-latex-image-directory (concat doom-cache-dir "org-latex/")
|
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)
|
|
||||||
|
|
||||||
(defvar org-modules
|
(defvar org-modules
|
||||||
'(;; ol-w3m
|
'(;; ol-w3m
|
||||||
@ -1000,4 +996,10 @@ compelling reason, so..."
|
|||||||
(run-hooks 'org-load-hook))
|
(run-hooks 'org-load-hook))
|
||||||
|
|
||||||
:config
|
: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))
|
(add-hook 'org-open-at-point-functions #'doom-set-jump-h))
|
||||||
|
Reference in New Issue
Block a user