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

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

Re: How to comment out blocks in c-style?


From: Zhekka
Subject: Re: How to comment out blocks in c-style?
Date: 11 Jun 2006 00:14:10 -0700
User-agent: G2/0.2

The file is .c
Perhaps it's the .emacs file, but I don't know where to look..

Ken Goldman wrote:
> It should work correctly for C.  I suspect that emacs thinks you are
> editing C++ code.  What does your mode line say?  Is the file .c or .cpp?
>
> Zhekka wrote:
> > Hi all
> >
> > I'm using C-c C-c to comment out a block of code. This creates nice C++
> > style comments, which is beautiful but not good for my ANSI C code. I
> > would like to assign this key-combination (C-c C-c) C-style comment
> > fashion. Is this possible?
> >
> > If my english is bad, here's an illustration:
> >
> > instead of:
> > // a = piece+of_code;
> > // which += was;
> > // badly(written);
> >
> > would like to see:
> > /* a = piece+of_code;
> >  * which += was;
> >  * written * well();
> >  */



reply via email to

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