问题描述
我希望emacs将上一个编辑位置添加到标记环,所以我可以跳回到以前的编辑位置。
I want emacs to add last edit location to the mark ring, so I can jump back to previous edit locations.
理想情况下,这只会标记一个每行编辑位置。当我编辑另一行时,该行上的最后一个编辑位置将被添加到环中,等等。
Ideally this would only mark one edit location per line. When I edit another line, the last edit location on that line would be added to the ring, and so forth.
我不熟悉Lisp自己实现这个。如果有人知道一个插件,或者可以提供一个很棒的解决方案! :
I'm not familiar with Lisp to implement this myself. If anyone knows of a plugin or can kindly provide a solution that would be great! :)
推荐答案
提供绑定到Cx C- /或 session-jump-to-last-change
的功能。
Session.el provides this functionality bound to "C-x C-/" or session-jump-to-last-change
.
每个缓冲区的会话dos。我不知道在全球有什么。
Session dos it per buffer. I'm unaware of anything that does it globally.
这篇关于Emacs - 在编辑位置设置标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!