From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: comment latex C-c C-c? Date: Sat, 12 Jan 2008 19:21:46 +0100 Message-ID: <87y7auyked.fsf@thievol.homelinux.org> References: <181a6eb1-6024-4c09-893b-1937b99e3725@v46g2000hsv.googlegroups.com> <4788e9fb$0$25372$9b4e6d93@newsspool4.arcor-online.net> <6a9b994f-7e6f-494f-82a3-2ab198b4900c@v29g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200161704 20504 80.91.229.12 (12 Jan 2008 18:15:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2008 18:15:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "avilella\@gmail.com" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 12 19:15:27 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 1JDktC-00081t-4L for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 19:15:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDkso-00044Z-5L for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Jan 2008 13:15:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDksX-00044U-AU for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 13:14:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDksU-00044I-UV for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 13:14:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDksU-00044F-PM for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 13:14:42 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.152]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDksU-0001y0-FO for help-gnu-emacs@gnu.org; Sat, 12 Jan 2008 13:14:42 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so2318773fga.30 for ; Sat, 12 Jan 2008 10:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=dHSCl7Dyf7w5U0xBB+oxr351WdjshKltt3QATqscAS8=; b=kIpWOPZXUVM5jDDaucqOCeanuki80Kx7QlqQ91UCztiAJSQcG3O5s0r/ol/B6ZY8FM5zyUuxKJp/Pv2E4hgD8MXew+UEd61cF9lrMipQe3Q3I+U0N6tBogEP1Oj1y81BXCYhv//5i8Rpe0y1Y9Wb0IoCUc9IXQTb8Pt/jf9f6yM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=t6giPIgSa0fPl+K962iT4MC0P/FhF4zCq1nv7kTEMEyJcYCAencN11EISjTP4VtzPZJEpUS8cZUypsGxzrfUmpilailC/KP7lWkmQ9IPclK50xGBl6HpVItLiKj6iPQibCE/cEPqN4PLWRD6rTu/xtnPrGHO6olZVS265zbjX+0= Original-Received: by 10.82.158.12 with SMTP id g12mr7816938bue.18.1200161680720; Sat, 12 Jan 2008 10:14:40 -0800 (PST) Original-Received: from thievol.homelinux.org ( [88.141.76.239]) by mx.google.com with ESMTPS id w5sm14429125mue.2.2008.01.12.10.14.38 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Jan 2008 10:14:39 -0800 (PST) In-Reply-To: <6a9b994f-7e6f-494f-82a3-2ab198b4900c@v29g2000hsf.googlegroups.com> (avilella@gmail.com's message of "Sat, 12 Jan 2008 08:43:28 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:50686 Archived-At: "avilella@gmail.com" writes: > 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? No, because C-c C-c is the latex command to compile your file just do M-; (thats work in all the modes) Setting keybindings to C-c C-c is a bad idea because this keybinding is already used in many modes of emacs. -- A + Thierry Pub key: http://pgp.mit.edu