更改emacs ido显示的数量

时间:2016-03-16 14:28:23

标签: emacs elisp ido

我认为emacs ido显示的项目编号有点少,如何更改ido显示的数量?

1 个答案:

答案 0 :(得分:1)

C-h v ido-max-prospects

ido-max-prospects is a variable defined in `ido.el'.
Its value is 12

Documentation:
Upper limit of the prospect list if non-zero.
Zero means no limit for the prospect list.
For a long list of prospects, building the full list for the
minibuffer can take a non-negligible amount of time; setting this
variable reduces that time.

You can customize this variable.
(setq ido-max-prospects 5) ;; show 5 or fewer candidates in ido

顺便说一句,我通过浏览M-x customize-group ido中的所有变量找到了这个变量。