Use isearch-yank-kill
instead of yank
. Try (lookup-key isearch-mode-map (kbd "C-y"))
. I use minibuffer-inactive-mode-map
, minibuffer-local-map
, minibuffer-local-completion-map
. You can get exhaustive list of maps by C-hv-mapTAB. Function (current-local-map)
can help. See also http://www.gnu.org/software/emacs/manual/html_node/elisp/Controlling-Active-Maps.html
Upd.: Name of current local keymap, definition of function keymap-symbol
, see https://stackoverflow.com/a/14490054/1937596
If you use
(setq enable-recursive-minibuffers t)
you can, while in minibuffer, call (eval-expression)
by hotkey and execute (current-local-map)
or (keymap-symbol (current-local-map))