如何获得“彩虹括号”在emacs? [英] How do I get "rainbow parentheses" in emacs?
问题描述
我想用彩虹括号来编辑Emacs中的Clojure,因为 VI这样做我假设在Emacs它应该是像Mx蝴蝶或东西:)
I would like rainbow parens for editing Clojure in Emacs and since VI does this I assume that in Emacs it should be something like M-x butterfly or something :)
推荐答案
这是一个老问题现在,但我最近写了 RainbowDelimiters 模式。这是一个彩虹括号类型模式,它将所有的括号,括号和大括号,用Clojure编程来制作。
This is an old question now, but I recently wrote RainbowDelimiters mode for this. It's a 'rainbow parens'-type mode which colors all parens, brackets and braces, made with Clojure programming in mind.
它突出显示整个缓冲区,周围点。
It highlights the whole buffer, not just the parens surrounding point.
最重要的是 FAST 模式我试着减慢编辑(特别是滚动)相当多。我花了大量的精力在分析和优化它,所以对滚动/编辑速度没有任何明显的影响。
The most important thing is that it's FAST - all the other rainbow paren modes I've tried slow down editing (especially scrolling) quite a lot. I put significant effort into profiling and optimizing it so doesn't have any noticeable impact on scrolling/editing speed.
您可以在 a href =http://www.emacswiki.org/emacs/RainbowDelimiters> EmacsWiki页面 ,模式本身位于 rainbow-delimiters.el 。
You can find info about it at the EmacsWiki page, and the mode itself is at rainbow-delimiters.el.
这篇关于如何获得“彩虹括号”在emacs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!