4

输入

// This is an example, a test, of what I want emacs filling, in this case of C++ comments, to do.
// This is a paragraph that needs to get filled.
//     But I want to start a new paragraph, within the same comment, that is indented,
// but not joined to the previous by filling.
//     And another.

这是我当前设置的结果。我不想要这个。它连接段落。

// This is an example, a test, of what I want emacs filling,
// in this case of C++ commentrs to do.  This is a paragraph
// that needs to get filled.  But I want to start a new
// paagraph, within the same comment, that is indented, but
// not joined the the previous by filling.  And another.

这就是我想要的

// This is an example, a test, of what I want emacs filling,
// in this case of C++ comments to do.  This is a paragraph
// that needs to get filled.
//     But I want to start a new paragraph, within the same
// comment, that is indented, but not joined to the previous
// by filling.
//     And another.

使用自适应填充。

GNU Emacs 24.1.1


有人问“emacs 如何将您的非标准段落标记与对空格有点草率的用户区分开来?新段落的标准标记是空行。”

有一些 emacs 模式可以用标准的英文缩进正确填充段落,其中新段落的第一行比附近的段落正文行有更多的缩进。

This is an example, a test, of what I want emacs filling,
in this case of non-comments to do.  This is a paragraph
that needs to get filled.
    But I want to start a new paragraph, within the same
comment, that is indented, but not joined to the previous
by filling.
    And another.

我想要的只是将其扩展到额外的缩进,超过填充前缀。

4

1 回答 1

0

您可以通过各种正则表达式变量来控制它。你可能可以让它做你想做的事,但它有点“艺术”。

于 2012-10-05T22:13:33.903 回答