[OS X Emacs] AquaMacs reftex hook

Jochen Küpper jochen at fhi-berlin.mpg.de
Thu Nov 29 07:50:44 EST 2007


On 29.11.2007, at 10:37, Joseph C. Slater PE, PhD wrote:

> In carbon emacs, I have
> (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
> (setq reftex-plug-into-AUCTeX t)
>
> in my .emacs file to cause reftex mode to be enabled whenever I  
> load a latex document. This doesn't work in Aquamacs. How do I add  
> this hook in aquamacs?

I have this, which works for GNU Emacs and Aquamacs:

(autoload 'reftex-mode    "reftex" "RefTeX Minor Mode" t)
(autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
(setq reftex-plug-into-AUCTeX t)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode


Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen- 
Kuepper.de
     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
         Sex, drugs and rock-n-roll


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20071129/0c14d77f/attachment.sig>


More information about the MacOSX-Emacs mailing list