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

Reply via email to