I have been using show-paren-mode to highlight matching parentheses, but
wished that I could highlight more than one par of matching parentheses at a
time.  (Similar to the way Excel highlights parentheses when editing
formulas).

I'm excited to report that I have discovered a way to do this and offer the
following bit from my .emacs file for your enjoyment.

; Download this into your emacs lisp directory
; http://nschum.de/src/emacs/highlight-parentheses/highlight-parentheses.el
(require 'highlight-parentheses)
(setq hl-paren-colors '("gold" "IndianRed" "cyan" "green" "orange"
"magenta"))
(defun hpm-on ()
  (highlight-parentheses-mode t))
(add-hook 'ess-mode-hook 'hpm-on)
(add-hook 'inferior-ess-mode-hook 'hpm-on)

I think you can add more colors to the list if needed.  hl-paren-colors can
also be set via customization groups if you want.

Kevin Wright

	[[alternative HTML version deleted]]


