[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] How to customize tex-mode-map to rebind TeX-electric-escap

From: Leo Alekseyev
Subject: Re: [AUCTeX] How to customize tex-mode-map to rebind TeX-electric-escape?..
Date: Sun, 15 Nov 2009 22:20:49 -0500

To answer my own question: the issue was case sensitivity, i.e. the
statement should have been (define-key TeX-mode-map....)

Also, I simply rebound toggle-input-method to C-c \

On Sun, Nov 15, 2009 at 1:30 PM, Ed C. <address@hidden> wrote:
> Maybe "\C-\\" or [(control ?\\)] or [(control 92)] If none of those work
> then I am at a loss as how to help. If you're using a lot of unicode it
> might be better to leave C-\ as toggle-input-method and bind
> tex-electric-macro function to C-c something or other.
> Leo Alekseyev wrote:
>> Dear All,
>> I would like to use TeX-electric-macro, but I would like to rebind it
>> to C-\ (backslash).  I tried both of the following:
>> (define-key tex-mode-map [(control \\)] 'TeX-electric-macro)
>> and
>>  (add-hook 'TeX-mode-hook
>>         '(lambda ()
>>            (define-key tex-mode-map [(control \\)] 'TeX-electric-macro)))
>> However, in both cases I get an error "symbol's value as variable is
>> void: tex-mode-map".  Can anyone tell me what the correct procedure is
>> for rebinding the command?
>> Thanks,
>> --Leo
>> _______________________________________________
>> auctex mailing list
>> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]