Emacs 中的 C 注释 - Linux 内核风格

2024-04-24

我在用着

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

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

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

但我希望它们看起来像这样:

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

我必须改变什么?


尝试使用:

(setq comment-style 'extra-line)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Emacs 中的 C 注释 - Linux 内核风格 的相关文章

随机推荐