Fix no such file errors when quitting emacs

Because org-id-locations-file cannot be read/written to.
This commit is contained in:
Henrik Lissner 2020-02-06 22:26:06 -05:00
parent 197a3faa7c
commit 640cee3b26
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -988,4 +988,10 @@ compelling reason, so..."
org-id-locations-file (concat org-directory ".orgids") org-id-locations-file (concat org-directory ".orgids")
org-id-locations-file-relative t) org-id-locations-file-relative t)
;; HACK `org-id' doesn't check if `org-id-locations-file' exists or is
;; writeable before trying to read/write to it.
(defadvice! +org--fail-gracefully-a (&rest _)
:before-while '(org-id-locations-save org-id-locations-load)
(file-exists-p org-id-locations-file))
(add-hook 'org-open-at-point-functions #'doom-set-jump-h)) (add-hook 'org-open-at-point-functions #'doom-set-jump-h))