Emacs - 在编辑位置设置标记 [英] Emacs - set mark on edit location

查看:227
本文介绍了Emacs - 在编辑位置设置标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望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! :)

推荐答案

Session.el 提供绑定到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 - 在编辑位置设置标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆