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. <[email protected]> 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 >> [email protected] >> http://lists.gnu.org/mailman/listinfo/auctex >> > _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
