all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marc Schwartz <marc_schwartz@comcast.net>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs ispell / flyspell
Date: Tue, 01 Jan 2008 11:51:58 -0600	[thread overview]
Message-ID: <m3hchxe8n5.fsf@Bellerophon.localdomain> (raw)
In-Reply-To: 477a2caf$0$90262$14726298@news.sunsite.dk

Martin Jørgensen <megafedt@hotmail.com> 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

  parent reply	other threads:[~2008-01-01 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-29  4:24 emacs ispell / flyspell Martin Jørgensen
2007-12-29 10:33 ` Eli Zaretskii
2008-01-01 12:06 ` Martin Jørgensen
2008-01-01 13:53   ` Peter Dyballa
2008-01-01 20:08     ` Eli Zaretskii
2008-01-01 17:51   ` Marc Schwartz [this message]
2008-01-01 20:00     ` Lennart Borgman (gmail)
2008-01-01 20:07   ` Eli Zaretskii
2008-01-02 17:08   ` Alan Ristow
2008-01-05  8:08     ` Martin Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3hchxe8n5.fsf@Bellerophon.localdomain \
    --to=marc_schwartz@comcast.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.