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

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

Re: Unable to specify format for code comments


From: Le Wang
Subject: Re: Unable to specify format for code comments
Date: Tue, 22 Feb 2011 22:53:53 +0800

cc-mode has its own comment system.  See the doc for c-doc-comment-style.  Maybe you want javadoc?

On Sun, Feb 20, 2011 at 9:23 AM, jkb0932 <address@hidden> wrote:

I apologize if this question has been asked before; I checked the forums and
different sites and read everything I could get my hands on but have been
stumped by this one, prob. because I'm kind of a newbie when it comes to
emacs.

I would like to comment code for C source code such that

/* this is the first line of a comment
   and this is the second line of comment
*/

becomes

/* this is the first line of a comment
 * this is the second line of a comment
*/

In other words, put a '*' on each subsequent line. I know there is a
variable called "commend-continue", which is indeed set to " * " (I did C-h
v comment-continue RET), but I can't figure out how to make it actually
automatically insert this on each subsequent line. When I try to do "M-x
set-variable RET comment-continue RET" it says there's no such variable.

If it helps, I've looked at newcomment.el, which does indeed have a line
dedicated to it, but is not marked "autoload", so I'm guessing it has loaded
or defined, but I'm not sure how to do this (again, I'm a newbie).

Appreciate any feedback anyone can give. Thanks in advance.
--
View this message in context: http://old.nabble.com/Unable-to-specify-format-for-code-comments-tp30968705p30968705.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





--
Le

reply via email to

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