智能自动关闭匹配字符 [英] Intelligent auto closing matching characters
问题描述
在我使用的某些模式中,emacs通过自动关闭某些元素(如引号,括号)来帮助我。不过有一段时间,出于习惯,我键入关闭元素我的自我,最后使用())
或
如何设置emacs以忽略额外的键?
尽管滚动自己很有趣, autopair 已经出现了这个问题的规范解决方案,它做了你所要求的一切,还有一些事情,你不知道你想要的。Emacs wiki 条目。
Emacs 24(目前在预测试中)将电子配对包装预先包装。自动电话还比内置电话更复杂。
In some of the modes I'm using, emacs helps me by auto closing some elements such as quotes, parenthesis.
However some times, out of habit I type the closing element my self and end up with ())
or """
.
How can I set up emacs to ignore the extra key?
While it is fun to roll your own, autopair has emerged as the canonical solution to this problem. It does everything you ask, and a few things, you didn't know you wanted. Emacs wiki entry.
Emacs 24 (currently in pretest) will be prepackaged with an electric pairing package. Autopair is still much more sophisticated than the builtin one.
这篇关于智能自动关闭匹配字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!