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

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

Re: emacs ispell / flyspell


From: Eli Zaretskii
Subject: Re: emacs ispell / flyspell
Date: Sat, 29 Dec 2007 12:33:31 +0200

> Date: Sat, 29 Dec 2007 05:24:17 +0100
> From: =?ISO-8859-1?Q?Martin_J=F8rgensen?= <address@hidden>
> 
> Q1) Is it possible to avoid ispell entering latex environments, thereby 
> avoiding errors such as on the word "subfigure" and similar 
> latex-commands (there are *many errors* from these "special words")? Is 
> it also possible to avoid getting spelling errors for instance inside 
> \ref{THIS_IS_ON_PURPOSE_SPELLED_WRONG} or \label{something_here_too}?
> 
> If yes: Please tell me how.

The following advice is from the commentary of ispell.el:

  ;; Region skipping:
  ;;  Place new regular expression definitions of regions you prefer not to
  ;;  spell check in `ispell-skip-region-alist'.  Mode-dependent features can
  ;;  be added to latex by modifying `ispell-tex-skip-alists'.
  ;;  `ispell-message' contains some custom skipping code for e-mail messages.

Does this advice help you?

> Q2) This is perhaps trivial, but whenever I write latex-documents, I 
> would like to enable flyspell mode from the beginning without having to 
> type M-x flyspell.

You should enable flyspell from tex-mode-hook:

  (add-hook 'tex-mode-hook 'flyspell-mode)

Place the above line in your ~/.emacs.




reply via email to

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