You can implement a function that opens a shell instead of a processed buffer. This function is useful in many other cases, not only in the case of DnD
(require 'dired) (define-key dired-mode-map "c" 'shell-instead-dired) (defun shell-instead-dired () (interactive) (let ((dired-buffer (current-buffer))) (shell (concat default-directory "-shell")) (kill-buffer dired-buffer) ;; remove this line if you don't want to kill the dired buffer (delete-other-windows)))
EDIT In this case, you need to create the DnD directory in Emacs and press "c" to invoke the shell in this directory.
Otherwise, you can install the smart-dnd package and configure it to open the shell. I also provide other useful things, such as creating <img ...> tags in html mode if you drop jpg or #include<...> in c mode if you drop header.
Oleg Pavliv
source share