unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Unable to specify format for code comments
@ 2011-02-20  1:23 jkb0932
  2011-02-22 14:53 ` Le Wang
  0 siblings, 1 reply; 2+ messages in thread
From: jkb0932 @ 2011-02-20  1:23 UTC (permalink / raw)
  To: Help-gnu-emacs


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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-22 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-20  1:23 Unable to specify format for code comments jkb0932
2011-02-22 14:53 ` Le Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).