You can customize the Drag and Drop behavior using the variable dnd-protocol-alist
. The ultimate fallback is inserting the link as text, so this is what you want:
(setq dnd-protocol-alist nil)
The following is the default value, you can also remove http
only
(("^file:///" . dnd-open-local-file)
("^file://" . dnd-open-file)
("^file:" . dnd-open-local-file)
("^\\(https?\\|ftp\\|file\\|nfs\\)://" . dnd-open-file))
By the way, you can do interesting thing with dnd-protocol-alist
, such as, drag a html url into a markdown buffer and insert it as markdown link automatically. One existing cool use of it is Dired, when you drag a file into a dired buffer, the file will be copy&paste into that directory.