auctex
[Top][All Lists]
Advanced

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

[AUCTeX] How to customize tex-mode-map to rebind TeX-electric-escape?..


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

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




reply via email to

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