简体   繁体   English

Emacs模糊自动完成

[英]Emacs fuzzy autocompletion

I really like ido 's fuzzy matching in emacs. 我非常喜欢ido在emacs中的模糊匹配。 I would like to have that with autocompletion. 我想拥有自动完成功能。 Preferably with auto-complete , since I have ac-python and other things setup with auto-complete . 最好是auto-complete ,因为我有ac-python和其他东西设置auto-complete I am aware that auto-complete provides fuzzy matching if there are no normal matches found, but I want this normally. 我知道如果找不到正常匹配, auto-complete提供模糊匹配,但我通常需要这样。

You could just bind ac-fuzzy-complete to some key combination you like and use that instead of the other method you are using for completion. 您可以将ac-fuzzy-complete绑定到您喜欢的某个组合键,并使用它而不是您用于完成的其他方法。 It is already interactive, but isn't bound to any key. 它已经是交互式的,但不受任何密钥的约束。 Something like this would do: 这样的事情会做:

(global-set-key (kbd "M-C-I") 'ac-fuzzy-complete)

( MCi is otherwise the key combination used for complete-symbol ) MCi是用于complete-symbol的键组合)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM