From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "avilella@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: comment latex C-c C-c? Date: Sat, 12 Jan 2008 08:43:28 -0800 (PST) Organization: http://groups.google.com Message-ID: <6a9b994f-7e6f-494f-82a3-2ab198b4900c@v29g2000hsf.googlegroups.com> References: <181a6eb1-6024-4c09-893b-1937b99e3725@v46g2000hsv.googlegroups.com> <4788e9fb$0$25372$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200159635 14332 80.91.229.12 (12 Jan 2008 17:40:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 17:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 18:40:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JDkLn-0005bA-Vw for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 18:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDkLQ-0002sE-4k for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 12:40:32 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!v29g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 87.74.74.85 Original-X-Trace: posting.google.com 1200156210 23270 127.0.0.1 (12 Jan 2008 16:43:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 12 Jan 2008 16:43:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v29g2000hsf.googlegroups.com; posting-host=87.74.74.85; posting-account=wFf6sgoAAACcWG805-koZgFyRIIGHJPd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155268 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:50683 Archived-At: On Jan 12, 4:25 pm, Ralf Angeli wrote: > * avile...@gmail.com (2008-01-12) writes: > > How can I set my emacs configuration so that when in LaTeX mode, "C-c > > C-c" will comment out the > > lines with ("%") as does comment it in other modes? > > > Right now, when I do "C-c C-c", I get "Command: (default) > > `C-c C-c' is the canonical key binding for starting a processor or > compiler in Emacs. If you overwrote this with another command you'd > have to come up with another binding for this functionality. > > Commenting (and uncommenting) is usually available via `M-;'. > > -- > Ralf I've got this in my .emacs file: (global-set-key "\C-c\C-c" 'comment-region) So I guess this should also work with latex mode, right?