开发者

consecutive copying of text fragments in emacs

I want as I search backwards in the document to do copying (M-x) and then return to the saved mark after a few copying commands and paste the things I copied. Wha开发者_JAVA百科t ways are there to do this?

Best,


Do you mean you want to paste all of the things you copied in a single go?

One way is to do the first copy via M-w (aka M-x kill-ring-save), and the subsequent copies using C_M-w M-w. You can read about that in the docs here.

If you want to paste the chunks you copied individually, you can cycle through the pastes by doing C-y M-y M-y ..., where each successive M-y replaces the previous yank with the prior entry in the kill ring.

One nice mode for choosing which element from the kill ring to paste is the BrowseKillRing package.


Not too sure what you're asking, but it sounds like you want random (i.e., direct) access to any entry in the kill ring.

In Icicles you can see all of your kill-ring, filter it dynamically to see only some of it, and yank any entries from it using completion. By default, C-y is bound in Icicle mode to icicle-yank-maybe-completing.

That's the same as yank, unless you give it a negative prefix arg (e.g., C--). In that case, it lets you complete against the kill-ring. Completion can be prefix, apropos (substring, regexp), or fuzzy.

http://www.emacswiki.org/emacs/Icicles_-_Multi-Commands

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜