Further help can come from tools like autopair or paredit – although the latter is a bit too much bondage & discipline for me, many people love it.
Anyway, recently I discovered a new helper in the quest for balance in delimited universe: rainbow-delimiters. With this package, the delimiters all get different colors based on their nesting level. It works wonderfully well.
Installation is straightforward:
- download rainbow-delimiters and put it in your
- add something like the following in your
(when (require 'rainbow-delimiters nil 'noerror) (add-hook 'scheme-mode-hook 'rainbow-delimiters-mode))That's it – of course you'll need to do the equivalent for modes where you'd like to enable it. See the screenshot below – maybe a bit too colorful for some people, but I like it and I have found it actually useful to see the corresponding delimiters without having to move the cursor over them.
I already added some nice Zenburn colors for this to the Zenburn theme for Emacs-24, as can be seen in the screenshot.