2010/3/28 Ralf Angeli <[email protected]>:
>> 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)
[email protected]


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to