From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Schwartz Newsgroups: gmane.emacs.help Subject: Re: emacs ispell / flyspell Date: Tue, 01 Jan 2008 11:51:58 -0600 Message-ID: References: <4775cbfc$0$90265$14726298@news.sunsite.dk> <477a2caf$0$90262$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1199212838 14286 80.91.229.12 (1 Jan 2008 18:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jan 2008 18:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 01 19:40:57 2008 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 1J9m2q-00073t-OS for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jan 2008 19:40:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9m2U-0002Hf-Qf for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Jan 2008 13:40:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 01 Jan 2008 11:52:04 -0600 Original-Newsgroups: comp.text.tex,gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:H44VA7z/0oyyOIHfRM6NdzGfLx8= Original-Lines: 85 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 76.17.205.60 Original-X-Trace: sv3-MuKT/kMcKOm8ez/XfB1VLQbVujGENO3O19DNzgcZFrHgQeSRlpiPHg+ppfwdnwa0TPihx8kdM4B1dsB!SZzSIad3UvQQT4s3IBp8ZSs/W7qZUthqrD55fRK693Up6iiMhixi+UGUWOLFz/U8ZSsBOmXnS/2Z!y8lYc0ooP9K7faTfP2f7 Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Original-Xref: shelby.stanford.edu comp.text.tex:364303 gnu.emacs.help:154996 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:50417 Archived-At: Martin Jørgensen writes: > Martin Jørgensen wrote: >> 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. >> >> >> 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. I googled for a solution and found a reply >> from 1999: >> >> ---------- >> Try `M-x ispell-minor-mode RET'. This will automatically spell each >> word as soon as you type SPC or RET. >> >> Another possibility is the flyspell package (`M-x flyspell RET', I >> think). I don't know if it works with XEmacs. >> ----------- >> >> But how do I put that into my .emacs, in relation to question 2? >> >> This post is X-posted to comp.text.tex and gnu.emacs.help. > > hmmm. No answer. > > Where else can I post these 2 questions? I sometimes saw David Kastrup > in here answering something clever on this kind of problems. > > Is there an auctex user group, developers forum or similar place where > I can ask whether or not I just have to live with this behaviour? > > > Aren't there many people here using emacs for making latex-documents? > > To those people: What do you do, if you want to check for spelling > errors (must say, that I've never been a big fan of spell checks > anyway but I would like to have the opportunity of doing it elegantly > from within emacs). > > > Regards, > Martin In my .emacs file I have the following to load flyspell for tex/text documents at startup: ;; ============================================================= ;; LOAD FLYSPELL =============================================== ;; ============================================================= ;; Set flyspell mode on (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t) (add-hook 'tex-mode-hook 'flyspell-mode) (add-hook 'text-mode-hook 'flyspell-mode) I don't disable flyspell for certain types of documents, including here in GNUS. I am using emacs 23 built from cvs. If language specific keywords show up as errors, I slowly add them to the dictionary so that they can be checked and flagged if I have typos. It helps with debugging code when subtle typos may not be noticed. If I am entering character/string constants in code, I want those to be checked as well. I am generally coding in R with ESS. I use Sweave which enables me to create documents that combine R and LaTeX code in a single file. In many cases, I am "computing on the language", so I want keywords to be checked, since my R code will create and output LaTeX markup. This does mean that there is a level of inconvenience in that I have to take some time to add common words to the dictionary that are not already present. But in time, that becomes less and less of an issue. HTH, Marc Schwartz