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: Ken Goldman
Subject: Re: How to comment out blocks in c-style?
Date: Thu, 08 Jun 2006 14:01:09 -0400
User-agent: Mozilla/5.0 (X11; U; AIX 000C89FF4C00; en-US; rv:1.7) Gecko/20040617

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]