智能自动关闭匹配字符 [英] Intelligent auto closing matching characters

查看:87
本文介绍了智能自动关闭匹配字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我使用的某些模式中,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屋!

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