* How to comment out blocks in c-style?
@ 2006-06-08 14:43 Zhekka
2006-06-08 18:01 ` Ken Goldman
0 siblings, 1 reply; 3+ messages in thread
From: Zhekka @ 2006-06-08 14:43 UTC (permalink / raw)
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();
*/
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to comment out blocks in c-style?
2006-06-08 14:43 How to comment out blocks in c-style? Zhekka
@ 2006-06-08 18:01 ` Ken Goldman
2006-06-11 7:14 ` Zhekka
0 siblings, 1 reply; 3+ messages in thread
From: Ken Goldman @ 2006-06-08 18:01 UTC (permalink / raw)
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();
> */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to comment out blocks in c-style?
2006-06-08 18:01 ` Ken Goldman
@ 2006-06-11 7:14 ` Zhekka
0 siblings, 0 replies; 3+ messages in thread
From: Zhekka @ 2006-06-11 7:14 UTC (permalink / raw)
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();
> > */
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-11 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-08 14:43 How to comment out blocks in c-style? Zhekka
2006-06-08 18:01 ` Ken Goldman
2006-06-11 7:14 ` Zhekka
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.