From de9a11255d34a2635e61b150725cef242077bd06 Mon Sep 17 00:00:00 2001 From: Gregory Heytings Date: Tue, 25 May 2021 06:38:15 +0200 Subject: Improve completion-list-mode-map * doc/emacs/mini.texi (Completion Commands): Mention it. * lisp/minibuffer.el (minibuffer-local-completion-map): Add the M-g key for switch-to-completion (bug#47699). * lisp/simple.el (completion-list-mode-map): Make special-mode-map its parent, unbind the 'g' revert key, add the 'n' and 'p' keys for next-completion and previous-completion, and the M-g key for switch-to-minibuffer. (switch-to-minibuffer): New function. --- lisp/minibuffer.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp/minibuffer.el') diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index e04f1040b38..36fb8e72c15 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -2603,6 +2603,7 @@ The completion method is determined by `completion-at-point-functions'." (define-key map "?" 'minibuffer-completion-help) (define-key map [prior] 'switch-to-completions) (define-key map "\M-v" 'switch-to-completions) + (define-key map "\M-g" 'switch-to-completions) map) "Local keymap for minibuffer input with completion.") -- cgit v1.2.3