C评论在Emacs - Linux内核样式 [英] C Comment in Emacs - Linux Kernel Style

查看:92
本文介绍了C评论在Emacs - Linux内核样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用

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

和我的区域注释:

/* 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");
 * }
 */

p>

推荐答案

尝试:

(setq comment-style 'extra-line)

这篇关于C评论在Emacs - Linux内核样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆