Skip to content

Instantly share code, notes, and snippets.

Created Apr 1, 2011
What would you like to do?
Emulate VIMClojure's parentheses coloring in Emacs
(require 'rainbow-delimiters)
(add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
(add-hook 'slime-repl-mode-hook 'rainbow-delimiters-mode)
(let ((depth 0))
(dolist (color
;; These are nicked from VIMClojure:
;; vimclojure/vim/syntax/clojure.vim
(set-face-foreground (intern (format "rainbow-delimiters-depth-%d-face"
(incf depth)))

This comment has been minimized.

Copy link
Owner Author

@seh seh commented Apr 1, 2011

These definitions emulate VIMClojure's parentheses colors, overriding the default set of colors provided by the rainbow delimiters package for Emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment