2008/9/7 Daniele Tampieri <[EMAIL PROTECTED]>: > Hello, I have tried it and it works perfectly. > > Thank You very much! > Daniele > > 2008/9/6 Daniele Tampieri <[EMAIL PROTECTED]>: >> Thank you. I will try this solution: as you have already >> understand I am not a emacs Lisp expert. >> >> 2008/9/6 David Kastrup <[EMAIL PROTECTED]>: >>> Ralf Angeli <[EMAIL PROTECTED]> writes: >>> >>>> * Daniele Tampieri (2008-09-06) writes: >>>> >>>>> (add-hook 'tex-mode-hook >>>>> '(lambda () >>>>> (define-key tex-mode-map "\C-cl" 'tex-line-comment-box) >>>>> ) >>>>> ) >>>>> >>>>> When I enter the AUCTeX mode and type \C-c l emacs says: "C-c l is >>>>> undefined". >>>> >>>> The AUCTeX modes run `TeX-mode-hook', not `tex-mode-hook'. >>> >>> And it is probably evident that it uses TeX-mode-map rather than >>> tex-mode-map. >>> >>> In any case, I'd _not_ use either of those hooks to add key definitions >>> since the keymaps are static. I'd prefer something like >>> >>> (eval-after-load 'tex >>> '(define-key TeX-mode-map ... >>> >>> which defines the key once. >>> >>> -- >>> David Kastrup, Kriemhildstr. 15, 44793 Bochum >>> >> >
_______________________________________________ bug-auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-auctex
