开发者

How to set SPC to act as Enter in minibuffer mode?

When I edit in minibuffer mode, I must press Enter to exit minibuffer.

But I prefer to use Space.

  1. "Space" completes word again and again.

  2. When the message is "Sole Completion", press Space to exit minibuffer.

Defaullt Spa开发者_运维问答ce key in the second step cannot exit minibuffer, I remap it , but it not works at all.

(define-key minibuffer-local-map (kbd "SPC") `minibuffer-complete-and-exit)

any idea?


Need to define a key in the minibuffer-local-completion-map:

(define-key minibuffer-local-completion-map (kbd "SPC") 'minibuffer-complete-and-exit)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜