lang/org: fix unfontified remote links

This commit is contained in:
Henrik Lissner 2018-09-08 18:37:26 -04:00
parent 2019aaff97
commit 95fa12390d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -221,8 +221,10 @@ unfold to point on startup."
(org-link-set-parameters (org-link-set-parameters
"file" "file"
:face (lambda (path) :face (lambda (path)
(unless (file-remote-p path) (if (or (file-remote-p path)
(if (file-exists-p path) 'org-link 'error)))) (file-exists-p path))
'org-link
'error)))
(eval-when-compile (eval-when-compile
(defmacro def-org-file-link! (key dir) (defmacro def-org-file-link! (key dir)