如何更改M-的评论样式; (comment-dwim)使用c-mode时?
我希望它使用//之前的注释而不是/**/nesting.
版:
GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-12-11 on brahms, modified by Debian
Run Code Online (Sandbox Code Playgroud)
Mic*_*ert 17
相关的变量是comment-start,comment-end所以你可以使用这个:
(add-hook 'c-mode-hook (lambda () (setq comment-start "//"
comment-end "")))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2564 次 |
| 最近记录: |