mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 03:50:24 +10:00
13 lines
468 B
EmacsLisp
13 lines
468 B
EmacsLisp
;;; lang/org/autoload/contrib-dragndrop.el -*- lexical-binding: t; -*-
|
|
;;;###if (featurep! +dragndrop)
|
|
|
|
;;;###autoload
|
|
(defun +org-dragndrop-download-dnd-fn (uri action)
|
|
"Handle file links and base64 data uris."
|
|
(if (eq major-mode 'org-mode)
|
|
(+org-attach/uri uri)
|
|
(let ((dnd-protocol-alist
|
|
(rassq-delete-all '+org-attach-download-dnd
|
|
(copy-alist dnd-protocol-alist))))
|
|
(dnd-handle-one-url nil action uri))))
|