[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] Loading AUCTeX overrides my .emacs TeX/LaTeX customizat
From: |
David Kastrup |
Subject: |
Re: [Bug-AUCTeX] Loading AUCTeX overrides my .emacs TeX/LaTeX customization |
Date: |
Sat, 06 Sep 2008 20:29:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Ralf Angeli <address@hidden> 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