bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Clément Pit--Claudel
Subject: bug#24379: [PATCH] lisp/bindings.el: Bind (yank-pop -1) to M-Y
Date: Tue, 6 Sep 2016 11:13:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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)
>  

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]