自动关闭Emacs中的大括号? [英] Automatically closing braces in Emacs?
问题描述
例如;当我键入以下内容( |
是游标):
int main(|
我想要关闭)
自动为我插入:
int main(|)
$ b $有没有人知道emacs有类似的功能 - Google这次失败了我!
还有 但是,说实话,有一堆包围括号。维基所有这些都是这里列出的。解决您的问题的模式是: I've seen a plugin for Vim called AutoClose (discovered from this post) which automatically adds the closing brace when typing '(', '{' etc. For example; when I type the following ( I would like the closing Does anyone know of a similar feature for emacs - Google has failed me this time! There's also But, to be honest, there's a bunch of packages surrounding parenthesis. The wiki has them all listed here. The modes addressing your question are: 这篇关于自动关闭Emacs中的大括号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!'paredit
|
is the cursor):int main(|
)
to be inserted automatically for me:int main(|)
'paredit
. The cheat sheet shows you all the commands available. happen to like it better than the electric mode suggested in another answer. Though paredit does only apply to (), so it may not meed your needs.