From: "Sébastien Vauban" <zthjwsqqafhv@spammotel.com>
To: help-gnu-emacs@gnu.org
Subject: flyspelling at undesirable/unneeded moments
Date: Thu, 06 Mar 2008 16:32:57 +0100 [thread overview]
Message-ID: <87fxv3zx3q.fsf@mundaneum.com> (raw)
Hello,
I've turned on (the great) `flyspell' in many major editing
modes with the following code:
--8<---------------cut here---------------start------------->8---
;; turn on `flyspell' for various major modes
(mapc (lambda (hook)
(add-hook hook 'my-turn-on-flyspell-french))
'(message-mode-hook
text-mode-hook
latex-mode-hook
tex-mode-hook
nuweb-mode-hook
html-mode-hook)))
--8<---------------cut here---------------end--------------->8---
The problem is that, even in its fastest mode ...
--8<---------------cut here---------------start------------->8---
;; extra switches to pass to the `aspell' program
(setq ispell-extra-args '("--sug-mode=ultra"))
--8<---------------cut here---------------end--------------->8---
... it takes some amount of time - what's annoying for looooong
documents.
It is much more annoying when, in fact, the only thing you want
to do is to `ediff' it, just before committing it into
subversion: while you have worked on it, the fact it re-opens it
makes it go through it (for checking the ortograph) once more!
#1. How could we avoid that (i.e., not being called when open by
ediff)?
More generally, it'd be normal to activate the minor mode only
once you begin editing the document, not when you're opening it
just for reading.
#2. Is it possible to hook it in such a way (that it's only
enabled at the time we begin modifying the document)? Does
such hook concept exist?
Thank you very much for your helpful answers,
Seb
--
Sébastien Vauban
next reply other threads:[~2008-03-06 15:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 15:32 Sébastien Vauban [this message]
2008-03-10 4:54 ` flyspelling at undesirable/unneeded moments Kevin Rodgers
[not found] ` <mailman.8630.1205124899.18990.help-gnu-emacs@gnu.org>
2008-03-10 11:19 ` Sébastien Vauban
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fxv3zx3q.fsf@mundaneum.com \
--to=zthjwsqqafhv@spammotel.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).