]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-call): Bind to "C-M-m" or "M-RET"
authorOleh Krehel <ohwoeowho@gmail.com>
Mon, 13 Jul 2015 12:36:33 +0000 (14:36 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Mon, 13 Jul 2015 12:36:33 +0000 (14:36 +0200)
"C-M-m" is close to "C-M-n" and "C-M-p", just as "M-RET" is close to
"RET". Previously, the only binding was "C-o g".

ivy.el

diff --git a/ivy.el b/ivy.el
index b2d4680b82c38a401f03ee79a7018523da366584..59221e24c58d18f1c4f80b01eef8841a9d39d8a0 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -130,6 +130,7 @@ Only \"./\" and \"../\" apply here. They appear in reverse order."
     (define-key map (kbd "M-v") 'ivy-scroll-down-command)
     (define-key map (kbd "C-M-n") 'ivy-next-line-and-call)
     (define-key map (kbd "C-M-p") 'ivy-previous-line-and-call)
+    (define-key map (kbd "C-M-m") 'ivy-call)
     (define-key map (kbd "M-q") 'ivy-toggle-regexp-quote)
     (define-key map (kbd "M-j") 'ivy-yank-word)
     (define-key map (kbd "M-i") 'ivy-insert-current)