auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] including source specials in auctex 11.86


From: Rainer Thiel
Subject: Re: [AUCTeX] including source specials in auctex 11.86
Date: Sun, 28 Mar 2010 17:15:37 +0200

2010/3/28 Ralf Angeli <address@hidden>:
>> I included it to be able to bind a key in the LaTeX mode map
>> [(define-key LaTeX-mode-map "\C-cf" 'rth-insert-footnote)].
>
> The canonical way of doing something like this is to use
> `eval-after-load'.  So you could use the following statement (untested):
>
> (eval-after-load "latex"
>  '(define-key LaTeX-mode-map "\C-cf" 'rth-insert-footnote))

Thank you very much for your help again.  I had put

(add-hook 'LaTeX-mode-hook (lambda () (define-key LaTeX-mode-map
"\C-cf" 'rth-insert-footnote)))

in my .emacs later last nicht, but this has the disadvantage to be
called every time LaTeX-mode is activated.

Many thanks again

Rainer
-- 
Prof. Dr. Rainer Thiel
Dekan Philosophische Fakultät
07737 Jena, Germany (EU)
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]