help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comment latex C-c C-c?


From: Thierry Volpiatto
Subject: Re: comment latex C-c C-c?
Date: Sat, 12 Jan 2008 19:21:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]