file-exists-p -> file-writable-p for org-id-locations-file

The IDs file isn't much good to use if it isn't writable.
This commit is contained in:
Henrik Lissner 2020-03-01 23:35:59 -05:00
parent a76e4b56b5
commit 78f1621fda
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -959,6 +959,6 @@ compelling reason, so..."
;; 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))
(file-writable-p org-id-locations-file))
(add-hook 'org-open-at-point-functions #'doom-set-jump-h))