From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: Regexp replacement Date: Sat, 28 Oct 2006 09:36:54 +0200 Organization: nil Message-ID: <45430894$0$30315$9b4e6d93@newsspool1.arcor-online.net> References: <85iri5nzt0.fsf@lola.goethe.zz> <85bqnwor1t.fsf@lola.goethe.zz> Reply-To: angeli@caeruleus.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162021268 8074 80.91.229.2 (28 Oct 2006 07:41:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 07:41:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 28 09:41:08 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdioR-0007MH-RT for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 09:41:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdioR-0000g1-Es for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Oct 2006 03:41:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!feeder3.cambrium.nl!feed.tweaknews.nl!195.14.215.230.MISMATCH!news.netcologne.de!nhp.netcologne.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody Cancel-Lock: sha1:+WdHFSLgxgXRy21bWpMFbtUZFY4= Original-Lines: 24 Original-NNTP-Posting-Date: 28 Oct 2006 09:36:52 CEST Original-NNTP-Posting-Host: b353a4dc.newsspool1.arcor-online.net Original-X-Trace: DXC=9a5UH:; U`74RLigj]; iP=8ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9WLL6lYhJbM8392BQYIaSb9D\SojI5:1j=KG>4NU[oUP074\A@7YJ9N= Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:142728 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38347 Archived-At: * David Kastrup (2006-10-28) writes: > Jim Dai 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 ', 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