emacs 的 Vim 风格 Omnicomplete?
我发现了几个用于 emacs 的代码完成 elisp 软件包可以完成代码完成,但大多数都绑定到 M-/ 等键来切换完成。是否有类似于 Vim 的omnicomplete 的东西,您可以将其设置为自动弹出自动完成选项列表,您可以在其中导航,或者只是继续输入。
请参阅屏幕截图,例如:
I've found several code completion elisp packages for emacs that do code completion, but most bind to a key such as M-/ to toggle completion. Is there something similar to Vim's omnicomplete where you can set it to automatically pop up a list of autocompletion options where you can either navigate through them, or just keep typing.
See screenshot for example:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为 公司模式 最适合您的描述。看看吧。
I think company mode would best fit your description. Have a look at it.
有很多,都有点不同:
它们都有各自的缺点和优点。
emacs wiki 有一个包含所有完成包的页面。
There are a number, all a little different:
They all have their drawbacks and advantages.
The emacs wiki has a page for all the completion packages.
你可以吗?当然。在命令后挂钩上重置计时器。如果它消失了(因为你坐在屏幕前没有打字),弹出这个东西。
然而,告诉你的计算机要做什么(通过按键)似乎更容易,而不是让它等待你停止打字一段时间。将完成绑定到“菜单键”之类的东西,您甚至不需要和弦。
Can you? Sure. Reset a timer on post-command-hook. If it goes off (because you are sitting at your screen not typing), pop-up the thing.
It seems easier to tell your computer what to do (by pressing keys) rather than having it wait for your to stop typing for a while, however. Bind completion to something like the "menu key", and you won't even have to chord.