Variable: markdown-yank-dnd-method
markdown-yank-dnd-method is a customizable variable defined in
markdown-mode.el.
Value
file-link
Documentation
Action to perform on the dropped files.
When the value is the symbol,
- copy-and-insert -- copy file in current directory and insert its link
- open -- open dropped file in Emacs
- insert-link -- insert link of dropped/pasted file
- ask -- ask what to do out of the above.
This variable was added, or its default value changed, in markdown-mode version (2.8).
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defcustom markdown-yank-dnd-method 'file-link
"Action to perform on the dropped files.
When the value is the symbol,
- `copy-and-insert' -- copy file in current directory and insert its link
- `open' -- open dropped file in Emacs
- `insert-link' -- insert link of dropped/pasted file
- `ask' -- ask what to do out of the above."
:group 'markdown
:package-version '(markdown-mode "2.8")
:type '(choice (const :tag "Copy and insert" copy-and-insert)
(const :tag "Open file" open)
(const :tag "Insert file link" file-link)
(const :tag "Ask what to do" ask)))