[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spell Checking
From: |
kgold |
Subject: |
Re: Spell Checking |
Date: |
7 Jun 2005 21:28:57 GMT |
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> kgold wrote:
> > When I spell check comments and strings and the string is part of
> > a printf
> >
> > printf("\tHello, world\n");
> >
> > I'd like the spell checker to ignore the letter after the \.
> > Currently, it complains that tHello is misspelled, causing many false
> > errors.
>
> Can you trick it by adding backslash-character to
> ispell-skip-region-alist?
>
> (add-hook 'c-mode-hook
> (lambda ()
> (set (make-local-variable 'ispell-skip-region-alist)
> (cons '("\\\\[abfnrtv\\'\"]") ispell-skip-region-alist))))
Works perfectly. Thanks once again.
--
Ken Goldman kgold@watson.ibm.com 914-784-7646