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

Previous Next

Package: emacs;

Reported by: Nils Berg <nilsb <at> google.com>

Date: Tue, 6 Sep 2016 13:29:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Clément Pit--Claudel <clement.pit <at> gmail.com>
To: 24379 <at> debbugs.gnu.org
Subject: bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y
Date: Tue, 6 Sep 2016 11:13:23 -0400
[Message part 1 (text/plain, inline)]
Did you try M-- M-y (that is meta-minus, meta-y)?

Clément.

On 2016-09-06 09:28, Nils Berg wrote:
> 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)
>  

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 5 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.