Dear all,

This issue is driving me crazy. I have been googling the web for three
straight days, yet it is still afflicting me.

>From my emacs:

(add-hook 'TeX-mode-hook (lambda ()
                             (TeX-fold-mode 1)
                 (reftex-mode t)
                 (flyspell-mode t)
                 (setq flyspell-sort-corrections nil)
                 (turn-on-auto-fill)))


and

(defun Rnw-mode ()
  (require 'ess-noweb)
  (noweb-mode)
  (if (fboundp 'R-mode)
      (setq noweb-default-code-mode 'R-mode))
  )


The problem here is flyspell. It is activated through the hook
(TeX-mode-hook). However, if flyspell-mode is enabled the editing of the
chinks is extremely slow. I have tried to hook (flyspell-mode nil) to
Rnw-mode-hook, but it does not work (well, flyspell is disabled but the
editing is still very slow.).

I can live without flyspell. The problem is that to disable
flyspell-completely I have to edit my .emacs, since if I simply M-x
flyspell-mode, flyspell-mode will be re-enabled one I go outside to the
chunk and back in tex (since the hook is reloaded).

Any suggestion?

P.S.: Is there a way to exclude the chunks from being parsed by flyspell?
This would be optimal, but I looked at flyspell.el and I do not see this
possibility.

	[[alternative HTML version deleted]]

