[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Ignoring contents of commands when spellchecking
From: |
Ralf Angeli |
Subject: |
Re: [AUCTeX] Ignoring contents of commands when spellchecking |
Date: |
Thu, 07 Jun 2007 21:48:53 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
* Georg Brandl (2007-06-07) writes:
> is there any way to customize what document parts are ignored in the spell
> checking process?
>
> Specifically, I'd want to not check the contents of alltt environments, as
> well as a few user-defined commands that mark up words that almost always
> have "invalid" spelling...
For the alltt environments you could use something like this:
(eval-after-load "ispell"
'(let ((list (cadr ispell-tex-skip-alists)))
(add-to-list 'list '("alltt" . "\\\\end[ \t\n]*{[ \t\n]*alltt[ \t\n]*}"))
(setcdr ispell-tex-skip-alists (list list))))
Note, this is not related to AUCTeX.
--
Ralf