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

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

Re: How to get 'replace-string' to access the key-ring?


From: Robert Pluim
Subject: Re: How to get 'replace-string' to access the key-ring?
Date: Wed, 09 Jan 2019 13:46:28 +0100

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> How can I make 'replace-string' to access the kill-ring so that I have a 
> choice of whatever is in the kill-ring please?
>
> Currently I have this in my config -
>
> #+BEGIN_SRC emacs-lisp
>
> (global-set-key (kbd "M-s-x") 'replace-string)
>
> #+END_SRC
>
> - but I can't find any way of accessing the kill-ring so that I can choose 
> what text, or whatever, to search and replace for.
>
> Its probably something quite simple but its got me stumped at the moment, and 
> I can't find a solution on the web using google.

The minibuffer prompt is very much like a normal buffer: You can use
'C-y' to yank the last kill, and then use 'M-y' to cycle through the
kill ring.

Robert

Attachment: signature.asc
Description: PGP signature


reply via email to

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