[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: |
Daniele Tampieri |
Subject: |
Re: [Bug-AUCTeX] Loading AUCTeX overrides my .emacs TeX/LaTeX customization |
Date: |
Sun, 7 Sep 2008 21:32:19 +0200 |
2008/9/7 Daniele Tampieri <address@hidden>:
> Hello, I have tried it and it works perfectly.
>
> Thank You very much!
> Daniele
>
> 2008/9/6 Daniele Tampieri <address@hidden>:
>> Thank you. I will try this solution: as you have already
>> understand I am not a emacs Lisp expert.
>>
>> 2008/9/6 David Kastrup <address@hidden>:
>>> 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
>>>
>>
>