all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ralf Angeli <dev.null@caeruleus.net>
Subject: Re: Regexp replacement
Date: Sat, 28 Oct 2006 09:36:54 +0200	[thread overview]
Message-ID: <45430894$0$30315$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: 85bqnwor1t.fsf@lola.goethe.zz

* 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	other threads:[~2006-10-28  7:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-27 22:37 Regexp replacement Jim Dai
2006-10-27 22:45 ` David Kastrup
2006-10-28  1:16   ` Jim Dai
2006-10-28  7:09     ` David Kastrup
2006-10-28  7:36       ` Ralf Angeli [this message]
2006-10-28 19:11   ` Jim Dai
2006-10-28 23:44     ` David Kastrup
2006-10-29 20:10       ` Jim Dai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='45430894$0$30315$9b4e6d93@newsspool1.arcor-online.net' \
    --to=dev.null@caeruleus.net \
    --cc=angeli@caeruleus.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.