Emacs comment-region in C mode

Posted by Kinopiko on Stack Overflow See other posts from Stack Overflow or by Kinopiko
Published on 2009-10-11T21:37:23Z Indexed on 2010/05/15 2:44 UTC
Read the original article Hit count: 427

Filed under:
|
|
|

In GNU Emacs, is there a good way to change the comment-region command in C mode from

/* This is a comment which extends  */
/* over more than one line in C. */

to

/* This is a comment which extends
   over more than one line in C. */

? I have tried

(setq comment-multi-line t)

but this does not help. There is a section on multi-line comments in the Emacs manual, but it does not mention anything.

© Stack Overflow or respective owner

Related posts about c

    Related posts about c-mode