Skip to content
Block syntax highlighting for lisp code
Emacs Lisp
Pull request Compare This branch is 6 commits behind istib:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.markdown
elisp-blocks.png
elisp-delims.png
elisp-none.png
rainbow-blocks.el

README.markdown

rainbow-blocks: Groking Lisp languages through block highlighting.

Rainbow Blocks is an Emacs mode that highlights code blocks in lisp languages to help quickly mentally parse its structure. It is a fork from the brilliant rainbow-delimiters.el package, and only applies minor patches.

It is inspired by Douglas Crockford's remark that highlighting scope rather that syntax is sometimes more useful. So far, however, it does not parse syntax nor understands language scope.

Emacs Lisp example

rainbow delimiters

rainbow blocks

Installation

  • Install via melpa: M-x package-install RET rainbow-blocks RED

  • Compile the file (necessary for speed): M-x byte-compile-file [location of rainbow-blocks.el]

  • Add the following to your dot-emacs/init file: (require 'rainbow-blocks)

  • Activate the mode in your init file (e.g. for clojure):

(add-hook 'clojure-mode-hook 'rainbow-blocks-mode)

Further reading

Something went wrong with that request. Please try again.