Fix image previews for download:* org links

This commit is contained in:
Henrik Lissner 2020-04-15 23:47:14 -04:00
parent 582fb285bc
commit afca8f14a1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 2 deletions

View file

@ -17,8 +17,7 @@
(after! org
;; A shorter link to attachments
(+org-def-link "download" org-attach-id-dir)
(setf (alist-get "download" org-link-abbrev-alist nil nil #'equal)
(abbreviate-file-name org-attach-id-dir)))
(org-link-set-parameters "download" :image-data-fun #'+org-dragndrop-image-fn))
:config
(setq org-download-image-dir org-attach-id-dir
org-download-link-format "[[download:%s]]\n"