Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!umix!uunet!mcvax!inria!crin!hermann From: hermann@crin.crin.fr (Miki HERMANN) Newsgroups: comp.emacs Subject: Re: Spelling a TeX/LaTeX buffer Keywords: spell & TeX/LaTeX in GNU Emacs Message-ID: <456@crin.crin.fr> Date: 27 Apr 88 16:30:22 GMT References: <8804231931.AA02057@backup.vuse.uucp> Reply-To: hermann@crin.crin.fr (Miki HERMANN) Organization: CRIN - CNRS & INRIA Lorraine, Nancy, France Lines: 34 In article <8804231931.AA02057@backup.vuse.uucp> drl@backup.UUCP (David R. Linn) writes: >Let me restate my question: How do you convince the GNU EMACS command >M-x spell-buffer to correctly check the spelling of a TeX or LaTeX >buffer? M-x spell-buffer appears to use the system command "spell" >which processes its input with deroff which makes a somewhat ... >humorous ... transformation of the TeX input. I know about detex >and can do the steps of the pipeline by hand but would prefer have >the M-x spell-buffer command do the "right" thing. Create a file .emacs in your home directory and put in it (among other things) (setq auto-mode-alist '((``\\.tex$'' . TeX-mode)) ) This command assures that if you load a file *.tex in GNU Emacs buffer you automatically set TeX-mode for it. Now you have all the special and useful TeX-mode commands available. Try C-c C-h to see them. There is also a TeX/LaTeX spell command in it. You can invoke it either as M-x tex-spell-buffer or C-c C-s b The tex-spell-buffer command gives you also the possibility to create a hashed file of your own special words which are then in the following spell command invocations not indicated as spell errors. Miki HERMANN Centre de Recherche en Informatique de Nancy, B.P. 239, F-54506 Vandoeuvre-les-Nancy , France; e-mail: hermann@crin.crin.fr or ..!mcvax!inria!crin!hermann -- Miki Hermann (hermann@crin.crin.fr)