[ESS] Highlighting matching parentheses

ronggui ronggui.huang at gmail.com
Sat Apr 25 04:54:39 CEST 2009


Love it too.

2009/4/24 Rainer M Krug <r.m.krug at gmail.com>:
> 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
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>



-- 
HUANG Ronggui, Wincent
PhD Candidate
Dept of Public and Social Administration
City University of Hong Kong
Home page: http://asrr.r-forge.r-project.org/rghuang.html




More information about the ESS-help mailing list