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

标签 emacs comments elisp

我正在使用

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

和我的地区评论,在做 M-; 时,是:
/* void main()
 * {
 *  int i;
 *  int b;
 *  printf("format string");
 * } */

但我希望它们看起来像这样:
/* 
 * void main()
 * {
 *  int i;
 *  int b;
 *  printf("format string");
 * }
 */

我需要改变什么?

最佳答案

尝试:

(setq comment-style 'extra-line)

关于emacs - Emacs 中的 C 注释 - Linux 内核风格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23172561/

相关文章:

emacs - Emacs 中普通缓冲区和空间前缀缓冲区的区别?

emacs - 如何通过覆盖 Emacs 中的 set-face-attribute 来禁用粗体字体?

具有 gud-gdb 类型功能的 emacs 中的 python 调试

emacs - 如何完成禁用 flymake 以及它所连接的所有内容?

android - 在 build.gradle 文件中写注释的语法是什么?

emacs - Emacs 中缺少 regexp-opt 函数?

json - 如何将 emacs 连接到 json 服务?

assembly - 将 avr-asm 转换为 arm-gnu 注释的 sed 脚本

pycharm - 删除(Python)注释中的参差不齐的行

emacs - 如何一起使用 dart-mode 和 d-mode(为什么我们不能相处?)