From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "avilella\@gmail.com" <avilella@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: comment latex C-c C-c?
Date: Sat, 12 Jan 2008 19:21:46 +0100 [thread overview]
Message-ID: <87y7auyked.fsf@thievol.homelinux.org> (raw)
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)")
"avilella@gmail.com" <avilella@gmail.com> writes:
> On Jan 12, 4:25 pm, Ralf Angeli <dev.n...@caeruleus.net> 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
prev parent reply other threads:[~2008-01-12 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 16:13 comment latex C-c C-c? avilella
2008-01-12 16:25 ` Ralf Angeli
2008-01-12 16:43 ` avilella
2008-01-12 16:57 ` Ralf Angeli
2008-01-12 18:08 ` Lennart Borgman (gmail)
2008-01-12 18:21 ` Thierry Volpiatto [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y7auyked.fsf@thievol.homelinux.org \
--to=thierry.volpiatto@gmail.com \
--cc=avilella@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).