To add to what @lawlist said (which was supposed to bind the key in minibuffer-local-map ):
There are several mini-buffers, mini-buffers, depending on what is read in the minibuffer and how. And which of these layouts you might want to use may depend on which version of Emacs you are using.
In addition, there is also a key combination for interacting with the *Completions* : completion-list-mode-map buffer.
To complete the minibuffer operation, the main layout is minibuffer-local-completion-map .
Here is a list of mini buffers. Some of them may not be available (used) in your version of Emacs.
minibuffer-local-mapminibuffer-local-ns-mapminibuffer-local-isearch-mapminibuffer-local-completion-mapminibuffer-local-must-match-mapminibuffer-local-filename-completion-mapminibuffer-local-filename-must-match-mapminibuffer-local-must-match-filename-map
In addition, you can directly use minibuffer-with-setup-hook (or minibuffer-setup-hook ) to add on-the-fly key bindings throughout the minibuffer.
I will add this information, as it can be very useful when manipulating mini-buffers: you can use Ch Mk (the describe-keymap ), from the help-fns+.el , to see all the bindings of the given mini-buffer keyboard in a readable form .
source share