help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spell Checking


From: Kevin Rodgers
Subject: Re: Spell Checking
Date: Tue, 07 Jun 2005 11:59:43 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

kgold wrote:
> And my periodic question:
>
> 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))))

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]