lang/org: restore attach entry in org-link-abbrev-alist

This commit is contained in:
Henrik Lissner 2019-07-18 15:10:36 +02:00
parent 2caaec50e8
commit c0530202a5
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -272,6 +272,9 @@ Some commands of interest:
+ `+org-attach/sync'"
(setq org-attach-directory (expand-file-name org-attach-directory org-directory))
;; A shorter link to attachments
(add-to-list 'org-link-abbrev-alist (cons "attach" (abbreviate-file-name org-attach-directory)))
(org-link-set-parameters
"attach"
:follow (lambda (link) (find-file (expand-file-name link org-attach-directory)))