Starting dired with M-x dired and hitting M-x dired-create-directory I am now in a mini-buffer. Which mode-hook do I use to set a keybinding for the mini-buffer?

  • Here is a link to something Drew wrote on a related issue, perhaps it can help: stackoverflow.com/a/19759446/2112489 – lawlist Jan 16 '15 at 5:22
  • Please clarify your question. What is "this buffer" in which you want to set a keybinding? Is it the minibuffer? The Dired buffer? Dired does not have a special minibuffer, and neither does M-x. For M-x just use minibuffer-local-must-match-map. And I know of no function dired-make-directory. The minibuffer hooks are minibuffer-exit-hook, minibuffer-inactive-mode-hook, and minibuffer-setup-hook. And yes, see the URL that @lawlist mentioned for more info about minibuffer maps. But first, please clarify what you are asking - it is not at all clear. – Drew Jan 16 '15 at 5:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.