How to redefine a key inside a “minibuffer” mode-map?
问题 I'm trying to redefine the keys used to navigate the history when inside several commands accepting regexps and offering C-p / C-n history navigation. I'd like to use other keys, in addition to C-p / C-n. For example when using occur or replace-regexp , C-p and C-n can be used to go to previous and next elements. I've tried several things but can't make it work. I think I'm missing the "big picture" here. Which mode-map do I need to modify, when and how? Everything I tried failed. P.S: Note