Emacs:选择一个区域并键入以删除该区域 [英] Emacs: select a region and type to delete the region

查看:57
本文介绍了Emacs:选择一个区域并键入以删除该区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何告诉emacs与Windows或Mac一样工作,如果我选择一个区域并开始输入,该区域将在插入新文本之前被删除?

How can I tell emacs to work in the same way as Windows or Mac where if I select a region, and start typing, the region will be deleted prior to the new text to be inserted?

推荐答案

我认为它不是开箱即用的,看来您必须按照有关EmacsWiki的这篇文章

I don't think it does it out of the box, it looks like you have to turn on delete-selection-mode as per this article on EmacsWiki.

因此,基本上将以下行放入您的中。 emacs:

So, basically put the following line into your .emacs:

(delete-selection-mode 1)

这篇关于Emacs:选择一个区域并键入以删除该区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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