all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y
@ 2016-09-06 13:28 Nils Berg
  2016-09-06 14:33 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Nils Berg @ 2016-09-06 13:28 UTC (permalink / raw)
  To: 24379

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 1060 bytes --]

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-06-25 11:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-06 13:28 bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y Nils Berg
2016-09-06 14:33 ` Drew Adams
2016-09-06 15:15   ` Clément Pit--Claudel
2016-09-06 15:36     ` Drew Adams
2016-09-06 15:42       ` Clément Pit--Claudel
2016-09-06 15:58         ` Drew Adams
2016-09-14  9:42           ` Nils Berg
2016-09-06 15:13 ` Clément Pit--Claudel
2019-06-25 11:37 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.