Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C Comment in Emacs - Linux Kernel Style

I'm using

(setq-default comment-style 'multi-line)

and my region comments, when doing M-;, are:

/* void main()
 * {
 *  int i;
 *  int b;
 *  printf("format string");
 * } */

But I want them to look like this:

/* 
 * void main()
 * {
 *  int i;
 *  int b;
 *  printf("format string");
 * }
 */

What do I have to change?

like image 249
Geyslan G. Bem Avatar asked Mar 19 '23 20:03

Geyslan G. Bem


1 Answers

Try with:

(setq comment-style 'extra-line)
like image 189
Anler Avatar answered Mar 28 '23 14:03

Anler