Emacs: How to yank the last yanked text regardless of subsequent kills?

后端 未结 8 987
無奈伤痛
無奈伤痛 2021-01-31 16:23

I often find myself repeatedly yanking something after doing some kills and it becomes a process like:

  1. C-y
  2. C-y M-y
  3. C-y M-y M-y
  4. C-y M-y M
相关标签:
8条回答
  • 2021-01-31 17:20

    I use

    M-x browse-kill-ring

    with keybinding 'M-y'. There is also helm support.

    https://www.emacswiki.org/emacs/BrowseKillRing

    offers more solutions.

    0 讨论(0)
  • 2021-01-31 17:21

    You could use M-x delete-region instead to kill the text, possibly binding it to a key if you want to use it a lot.

    0 讨论(0)
提交回复
热议问题