开发者

how to disable copy file on drag-and-drop

开发者 https://www.devze.com 2022-12-28 02:14 出处:网络
According to a doc Emacs supports “drag and drop”: dropping a file into an ordinary Ema开发者_JAVA技巧cs window visits the file using that window. As an exception, dropping a file into a window di

According to a doc

Emacs supports “drag and drop”: dropping a file into an ordinary Ema开发者_JAVA技巧cs window visits the file using that window. As an exception, dropping a file into a window displaying a Dired buffer moves or copies the file into the displayed directory.

How can I disable move or copy of a file in a dired mode so that emacs would visit the file in any mode?


Set dired-dnd-protocol-alist to nil.

(setq dired-dnd-protocol-alist nil)

...or use M-x customize to do it.

0

精彩评论

暂无评论...
验证码 换一张
取 消