[ESS] Highlighting matching parentheses
Rainer M Krug
r.m.krug at gmail.com
Fri Apr 24 09:17:38 CEST 2009
On Fri, Apr 24, 2009 at 2:20 AM, Kevin W <kw.statr at gmail.com> wrote:
> 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)
Nice - I like it
Rainer
>
> 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]]
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
--
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa
More information about the ESS-help
mailing list