lang/org: minor refactor of contrib submodules

This commit is contained in:
Henrik Lissner 2019-10-20 18:45:15 -04:00
parent c5464f1798
commit 1694641636
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 26 additions and 35 deletions

View file

@ -5,9 +5,9 @@
:commands (org-download-dnd org-download-dnd-base64)
:init
;; HACK We add these manually so that org-download is truly lazy-loaded
(nconcq! dnd-protocol-alist
'(("^\\(?:https?\\|ftp\\|file\\|nfs\\):" . +org-dragndrop-download-dnd)
("^data:" . org-download-dnd-base64)))
(pushnew! dnd-protocol-alist
'("^\\(?:https?\\|ftp\\|file\\|nfs\\):" . +org-dragndrop-download-dnd-fn)
'("^data:" . org-download-dnd-base64))
(advice-add #'org-download-enable :override #'ignore)
:config
(setq org-download-image-dir org-attach-directory