help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Regexp replacement


From: Ralf Angeli
Subject: Re: Regexp replacement
Date: Sat, 28 Oct 2006 09:36:54 +0200

* David Kastrup (2006-10-28) writes:

> Jim Dai <jgjimdai_p@yahoo.com> writes:
>
>> Hmm, I missed \( \) and \1 combination in my own try.
>>
>> How can create a key-binding such as C-c C-r in LaTeX mode? Thanks.

Such binding should be reserved for major modes.  User bindings should
be of the form `C-c <letter>', see (info "(emacs)Keymaps").

> (define-key LaTeX-mode-map (kbd "C-c C-r") 'beep)
>
> Or probably (if in .emacs) rather
>
> (add-hook 'LaTeX-mode-hook
>   (lambda nil
>     (define-key ...

Or use `local-set-key' if one does not want to think about the name of
the local keymap.

-- 
Ralf


reply via email to

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