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

Back to archive index

Brian J. Lopes statm****@gmail*****
Mon Nov 6 07:52:54 JST 2006


Seiji Zenitani wrote:
> 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,

YOU DA MAN!!!  I knew it was something stupid I did in there, but for 
the life of me I couldn't figure it out.  Thanks ever so much, it works 
like a charm!!!

Pura Vida,
Brian



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