Subject: bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y

From: Nils Berg <[email-masked]>
Date: Tue, 6 Sep 2016 15:28:40 +0200

It's extremely useful to be able to traverse the kill ring in both
directions, especially when there's many entries in it.

M-Y was the most intuitive binding for this to me, but one
could also argue in favor of C-M-y.

---
 lisp/bindings.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/bindings.el b/lisp/bindings.el
index c13f4b1..42efd05 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -889,6 +889,7 @@ if `inhibit-field-text-motion' is non-nil."
 (define-key esc-map "\C-w" 'append-next-kill)
 (define-key global-map "\C-y" 'yank)
 (define-key esc-map "y" 'yank-pop)
+(define-key esc-map "Y" (lambda () (interactive) (yank-pop -1)))

 ;; (define-key ctl-x-map "a" 'append-to-buffer)