>>>>> Ralf Angeli <[EMAIL PROTECTED]> (RA) wrote: >RA> * Mehmet Ergun (2008-01-03) writes: >>> I have emacs 21.4.1 with beamer.el and auctex on ubuntu 6.04. It seems >>> like beamer.el does not turn on the TeX-pdf-mode automatically when the >>> document class is beamer (even after parsing it as such). I saw here[1] >>> some code that seems relevant, but have no idea how to use it (I have >>> next to no experience with emacs).
>RA> Put the following stanza into your init file: >RA> (add-hook 'LaTeX-mode-hook >RA> (lambda () >RA> (when (member "beamer" (TeX-style-list)) >RA> (TeX-PDF-mode 1)))) >RA> Note that this will enable TeX PDF mode only for existing files. If you >RA> open a new file and insert the documentclass stuff, the mode will not be >RA> updated. This will happen only after you save the file, close it and >RA> reopen it. Or just C-c C-n -- Piet van Oostrum <[EMAIL PROTECTED]> URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4] Private email: [EMAIL PROTECTED] _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
