home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3867 < prev    next >
Encoding:
Text File  |  1992-08-27  |  2.0 KB  |  46 lines

  1. Xref: sparky gnu.emacs.help:3867 comp.text.tex:10612
  2. Newsgroups: gnu.emacs.help,comp.text.tex
  3. Path: sparky!uunet!mcsun!sun4nl!alchemy!piet
  4. From: piet@cs.ruu.nl (Piet van Oostrum)
  5. Subject: Re: How to modify LaTeX-environment-alist of auc-tex
  6. Sender: network-news@cs.ruu.nl
  7. Message-ID: <1992Aug27.140404.159@cs.ruu.nl>
  8. In-Reply-To: kondo@mech.ibaraki.ac.jp (Ryou Kondo)
  9. Date: Thu, 27 Aug 1992 14:04:04 GMT
  10. Distribution: comp
  11. Reply-To: piet@cs.ruu.nl (Piet van Oostrum)
  12. References: <KONDO.92Aug23184725@kurenai.mech.ibaraki.ac.jp>
  13. Organization: Dept of Computer Science, Utrecht University, The Netherlands
  14. Keywords: auc-tex
  15. Lines: 29
  16.  
  17. >>>>> kondo@mech.ibaraki.ac.jp (Ryou Kondo) (RK) writes:
  18.  
  19. RK> I installed auc-tex a few weeks ago. I tried to add my local
  20. RK> environment to LaTeX-environment-alist as written in the documents.
  21. RK> So I add the following lines to `.emacs'.
  22. RK> (setq LaTeX-mode-hook '(lambda ()
  23. RK>     (setq LaTeX-environment-alist
  24. RK>     (cons '("myenv" . LaTeX-array-hook) LaTeX-environment-alist))))
  25.  
  26. RK> But this did not work at all. 
  27.  
  28. RK> LaTeX-mode-hook is called when I open a tex source file.  However,
  29. RK> LaTeX-environment does not exist yet. It is created when I first type C-c
  30. RK> C-c to enter a environment and `ltx-env.el' is autoloaded.
  31.  
  32. RK> Are there any way to solve this problem without giving up auto-loading? 
  33.  
  34. If you put a (require 'ltx-env) in your LaTeX-mode-hook it should work. In
  35. this way you give up autoloading partially, but in LaTeX-mode it is rather
  36. probable that you are going to use ltx-env anyway.
  37.  
  38. I made a small modification to auc-tex to make it easier to do this kind of
  39. customization. I tried to contact both the maintainer and the mailing list,
  40. but my mail bounced. Does anybody know whether the addresses have changed?
  41. -- 
  42. Piet* van Oostrum, Dept of Computer Science, Utrecht University,
  43. Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
  44. Telephone: +31 30 531806   Uucp:   uunet!mcsun!ruuinf!piet
  45. Telefax:   +31 30 513791   Internet:  piet@cs.ruu.nl   (*`Pete')
  46.