Rainbow-delimiters is a "rainbow parentheses"-like Emacs mode for coloring parentheses, brackets, and braces according to their nested depth. It gives a visual reference for which delimiters match, and what statements are at the same depth - if several statements are at the same level, they will be the same color.
This is the official github repository for rainbow-delimiters. It is made available so people can easily contribute to the mode.
The latest release of rainbow-delimiters.el is always found at the following location on EmacsWiki:
Further information is available on the EmacsWiki page:
-
Place rainbow-delimiters.el on your emacs load-path.
-
Compile the file (necessary for speed):
M-x byte-compile-file
-
Add the following to your dot-emacs/init file:
(require 'rainbow-delimiters)
-
Activate the mode in your init file.
You can choose to enable it only in certain modes, or Emacs-wide:
-
To enable it only in specific modes, add lines like the following:
(add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
-
To activate the mode globally, add to your init file:
(global-rainbow-delimiters-mode)
-
To temporarily activate rainbow-delimiters mode in an open buffer:
M-x rainbow-delimiters-mode
Additional discussion is at the top of the file and on the EmacsWiki page linked to above.