[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: TeX-add-style-hook and beamer
From: |
Reiner Steib |
Subject: |
[AUCTeX] Re: TeX-add-style-hook and beamer |
Date: |
Thu, 12 Oct 2006 10:20:24 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Thu, Oct 12 2006, Leo wrote:
> With the following lines in my .emacs, auctex can't detect beamer
> style correctly i.e. \frametitle{} is not fontified and "C-x C-e" has
> no `frame' option. I suspect this a bug.
>
> ,----
> | (eval-after-load "tex" '(TeX-add-style-hook "beamer"
> | (lambda () (TeX-PDF-mode 1))))
> `----
IIRC, this is wrong. I use...
(eval-after-load "tex"
;; http://thread.gmane.org/gmane.emacs.auctex.general/718
'(add-hook 'LaTeX-mode-hook
(lambda ()
(when (member "beamer" TeX-active-styles)
(TeX-add-style-hook "beamer" (lambda () (TeX-PDF-mode 1)))))))
... as suggested in
<http://thread.gmane.org/gmane.emacs.auctex.general/718>.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/