Skip to content

Instantly share code, notes, and snippets.

@seh
Created Apr 1, 2011
Embed
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
'("orange1"
"yellow1"
"greenyellow"
"green1"
"springgreen1"
"cyan1"
"slateblue1"
"magenta1"
"purple1"))
(set-face-foreground (intern (format "rainbow-delimiters-depth-%d-face"
(incf depth)))
color)))
@seh

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