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

Back to archive index

Brian J. Lopes statm****@gmail*****
Mon Nov 6 02:45:46 JST 2006


Thanks everyone, I really appreciate the comments.  Let's see, I've
taken the advice of Seiji (actually tried this last night, but I pursued
it more aggressively today) and made a new .emacs file piece by piece.

Clearly the main problem I was having was trying to add the paths to the
lisp files.  I've already asked Peter something about this in the 
previous email I sent out.

Now for the lingering flyspell problem I keep having.

If I only put the following in a .emacs file I do get flyspell loaded 
when in text mode, but it will not turn on automatically when I open a 
LaTeX file.  Is there something I'm doing wrong with loading flyspell in 
text-mode?

==================================================================
(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
        (function (lambda ()
                (require 'reftex)
                (turn-on-reftex)
                (setq reftex-plug-into-AUCTeX t)
                (outline-minor-mode)
                 (turn-on-auto-fill)
                (setq ispell-parser 'tex)
                (flyspell-mode)
                (setq TeX-auto-save t)
                (setq TeX-parse-self t)
                (setq-default TeX-master nil)
                )))
==================================================================

Thanks,
Brian







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