Emacs 如何在注释中填写项目符号列表

Emacs 如何在注释中填写项目符号列表,emacs,elisp,Emacs,Elisp,我经常在“/”式的评论中添加项目符号列表,例如: // * Here’s a very long line containing a bullet and I want // it to fill like this. Note the leading space here // // * Here’s the next bullet in that same bullet list. 但是,我无法通过对newcomment.el变量的任何明显定制,让M-q以这种方式填充列表。结果总是这

我经常在“/”式的评论中添加项目符号列表,例如:

// * Here’s a very long line containing a bullet and I want
//   it to fill like this.  Note the leading space here
//
// * Here’s the next bullet in that same bullet list.
但是,我无法通过对newcomment.el变量的任何明显定制,让
M-q
以这种方式填充列表。结果总是这样:

// * Here’s a very long line containing a bullet and I want
// it to fill like this.

使用regexps(将
comment use syntax
设置为
nil
)似乎无法轻松完成此操作。是否需要使用语法表?

注释中的段落仍然有效,您只需通过空注释行将它们分开:

// * Here’s a very long line containing a bullet and I want
// it to fill like this.
//
// * Here’s the next bullet in that same bullet list.

请注意,第二行和后面的行没有缩进。

我希望包装行缩进,以匹配项目符号后面文本的开头。我认为OP希望在第一个项目符号的第二行前面有额外的空间,即“it to fill like this”前面@马克费希尔:自从我回答这个问题以来,这个问题已经改变了。啊,这就解释了。