[ESS] Sweave and aspell

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Aug 2 17:29:33 CEST 2012


Thanks Laurent ... your suggestion seems to do the trick.

I'm CC-ing ess-help so that other people will also benefit.

Thanks!
-steve

On Thu, Aug 2, 2012 at 10:53 AM, Laurent Gatto <laurent.gatto at gmail.com> wrote:
> Here is what I use in my .emacs file (for ispell):
>
> (add-to-list 'ispell-skip-region-alist '("^<<.*>>=" . "^@"))
>
> It comes from [1], that also mentions flyspell.
>
> Hope this helps,
>
> Laurent
>
> [1] http://stackoverflow.com/questions/8287330/exempt-code-chunks-in-an-sweave-document-from-emacs-spell-check
>
>
>
> On 1 August 2012 23:54, Steve Lianoglou <mailinglist.honeypot at gmail.com> wrote:
>> Hi,
>>
>> I'm writing a rather long Sweave (ok, knitr) document and realize that
>> I haven't spell checked this thing yet.
>>
>> I've installed aspell, which seems to work just fine, except for the
>> fact that it tries to spell check my code chunks when spell checking
>> the buffer.
>>
>> I've found some older posts (on the aspell ML) that suggest adding a
>> "context filter" (I believe) to recognize the noweb delimiters (<<*>>=
>> ... @).
>>
>> I guess this must already be a solved problem -- is there something in
>> ESS that takes care of this for me that I'm missing? Or does someone
>> have an aspell context filter whipped up that they are willing to
>> share?
>>
>> Tangentially, I thought flyspell danced around this problem (since it
>> didn't check noweb chunks), but flyspell-mode actually shuts off when
>> the point enters a noweb block (or when I type a new one). Is there a
>> way to get flyspell to stop doing that, too?
>>
>> Thanks for the help,
>> -steve
>>
>> --
>> Steve Lianoglou
>> Graduate Student: Computational Systems Biology
>>  | Memorial Sloan-Kettering Cancer Center
>>  | Weill Medical College of Cornell University
>> Contact Info: http://cbio.mskcc.org/~lianos/contact
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help



-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the ESS-help mailing list