From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs ispell / flyspell Date: Sat, 29 Dec 2007 12:33:31 +0200 Message-ID: References: <4775cbfc$0$90265$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1198924558 27750 80.91.229.12 (29 Dec 2007 10:35:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Dec 2007 10:35:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 29 11:36:09 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J8Z31-0003SF-IA for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Dec 2007 11:36:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8Z2g-000395-7i for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Dec 2007 05:35:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8Z0T-0001p1-9M for help-gnu-emacs@gnu.org; Sat, 29 Dec 2007 05:33:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8Z0R-0001lr-73 for help-gnu-emacs@gnu.org; Sat, 29 Dec 2007 05:33:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8Z0Q-0001lO-Rd for help-gnu-emacs@gnu.org; Sat, 29 Dec 2007 05:33:26 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8Z0Q-00047r-DV for help-gnu-emacs@gnu.org; Sat, 29 Dec 2007 05:33:26 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-120-75.inter.net.il [84.229.120.75]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id IRM20184 (AUTH halo1); Sat, 29 Dec 2007 12:30:54 +0200 (IST) In-reply-to: <4775cbfc$0$90265$14726298@news.sunsite.dk> (message from =?ISO-8859-1?Q?Martin_J=F8rgensen?= on Sat, 29 Dec 2007 05:24:17 +0100) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50382 Archived-At: > Date: Sat, 29 Dec 2007 05:24:17 +0100 > From: =?ISO-8859-1?Q?Martin_J=F8rgensen?= > > 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.