C在Emacs中的评论 - Linux内核样式v2 [英] C Comment in Emacs - Linux Kernel Style v2
问题描述
我收到了关于 C注释在Emacs中的答案 - Linux内核风格这样做很好,但是
I received an answer about C Comment in Emacs - Linux Kernel Style that works great but
< img src =https://i.stack.imgur.com/37ydK.pngalt =enter image description here>
当emacs注释( comment-dwim
)它正在填充第二个 * long_function_name_vari
和最后一个 * / code>带空格的行(在注释之前)不是像我已经配置的选项卡。如何避免这种情况?
when emacs comments (comment-dwim
) it's padding the second * long_function_name_vari
and last */
lines with spaces (before the comment) not tabs like I have configured it. How to avoid that?
使用这种风格进行评论有多容易?
And how easily to make a comment using this style?
/* void main()
* {
* int i;
* int b;
* printf("format string");
* }
*/
推荐答案
可定制变量 comment-style
在newcomment.el中定义,说
...
Customizable variable comment-style
is defined in newcomment.el saying
...
(extra-line t nil t t
"One comment for all lines, end on a line by itself")
...
应该提供想要的结果IIUC。
which should deliver the wanted result IIUC.
目前的实施方式是两条线,目前为止开放的新线没有文件。请提交一个功能请求文件错误报告。
Current implementation however is two-extra-lines, the opening newline undocumented so far. Please file a feature request resp. docu-bug report.
这篇关于C在Emacs中的评论 - Linux内核样式v2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!