[macemacsjp-english 737] Re: Configuring Auctex and flyspell

Back to archive index

Seiji Zenitani zenit****@mac*****
Mon Nov 6 07:05:08 JST 2006


Hi,

On 2006/11/06, at 2:45, Brian J. Lopes wrote:
>
> ==================================================================
> (setq default-major-mode 'text-mode) ;Set default mode to be text
> (add-hook 'text-mode-hook 'flyspell-mode) ; flyspell for text mode
> (add-hook 'text-mode-hook 'turn-on-auto-fill) ;Enable line breaks
>
> (require 'tex-site)
> (add-hook 'LaTeX-mode-hook
>         (lambda ()
>                 (require 'reftex)
>                 (turn-on-reftex)
>                 (setq reftex-plug-into-AUCTeX t)
>                 (outline-minor-mode 1)
>                 (turn-on-auto-fill)
>                 (setq ispell-parser 'tex)
>                 (flyspell-mode 1)
>                 (setq TeX-auto-save t)
>                 (setq TeX-parse-self t)
>                 (setq-default TeX-master nil)
>                 ))
> ==================================================================

If I assume that AUCTeX runs both text-mode-hook and LaTeX-mode-hook,  
you toggle (flyspell-mode) twice, therefore it is turned off. To turn  
it on explicitly, use (flyspell-mode 1) instead. Actually (turn-on- 
auto-fill) is an alias for (auto-fill-mode 1).

-- Seiji




More information about the macemacsjp-english mailing list
Back to archive index