You are not logged in.

#1 2012-08-08 22:02:17

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

emacs custom mode-specific keybindings don't work

I want to remap C-c C-c in LaTeX mode to a custom function.  Rooting around the web, I've learned that it should be done this way:

(eval-after-load 'latex-mode '(define-key latex-mode-map (kbd "C-c C-c") 'my-function)

.  However, that has no effect; C-c C-c still calls tex-compile.

Suggestions?  I have the same problem with trying to get bibtex-mode to let me insert tabs with the Tab key, and so on.

Thanks

Offline

#2 2012-08-09 03:24:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,334

Re: emacs custom mode-specific keybindings don't work

Where did you put that line?  Did you evaluate it directly or in a file like ~/.emacs ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-08-09 09:58:24

ibrunton
Member
From: Canada
Registered: 2011-05-05
Posts: 270

Re: emacs custom mode-specific keybindings don't work

I evaluated it with C-x C-e.

Offline

Board footer

Powered by FluxBB