如何让emacs列出像ls这样的建议(沿着列)

joh*_*ohv 4 sorting emacs ls autosuggest

如何让emacs按列而不是行列出建议?

简而言之,emacs给了我这个:

In this buffer, type RET to select the completion near point.

Possible completions are:
abc1                  abc2                  abc3
abc4                  abc5                  abc6
abc7                  abc8                  abc9
bc1                   bc2                   bc3
Run Code Online (Sandbox Code Playgroud)

但我希望这样,所以我可以快速扫描一列:

In this buffer, type RET to select the completion near point.

Possible completions are:
abc1                  abc5                  abc9
abc2                  abc6                  bc1
abc3                  abc7                  bc2
abc4                  abc8                  bc3
Run Code Online (Sandbox Code Playgroud)

Col*_*ane 7

将以下内容添加到.emacs应该可以解决问题.

(setq completions-format 'vertical)
Run Code Online (Sandbox Code Playgroud)

注意:此选项是在Emacs 23.2中引入的.

  • @desudesudesu 好点。我想知道您或其他人是否知道如何让 *Completions* 缓冲区中的条目向右侧扩展,以便可以水平滚动以查看剩余的条目? (2认同)