简体   繁体   English

Emacs + Cider:无需输入首字母即可显示所有自动完成选项

[英]Emacs + Cider: Show all autocomplete options without typing first letters

I'm trying to understand whether I'm not using cider properly or that's how it works and I have to get used to it.我试图了解我是否没有正确使用苹果酒,或者这就是它的工作原理,我必须习惯它。

Steps to reproduce:重现步骤:

Load the following ns/file/buffer into a running cider repl:将以下 ns/file/buffer 加载到正在运行的 cider repl 中:

(ns app.domain)
(defn my-func [])

Switch to another ns via (in-ns 'app.foo) then start typing app.domain/ and it doesn't show any available options(I expect my-func autocompletion).通过(in-ns 'app.foo)切换到另一个 ns,然后开始输入app.domain/并且它没有显示任何可用选项(我希望my-func自动完成)。

It shows my-func autocomplete option only after I type the first character - m .只有在我输入第一个字符 - m后,它才会显示my-func自动完成选项。

That's what I've found:这就是我发现的:

CIDER / Using CIDER / Code Completion CIDER / 使用 CIDER / 代码完成

When you press TAB or M-TAB you'll get completion candidates in a dedicated buffer.当您按 TAB 或 M-TAB 时,您将在专用缓冲区中获得完成候选。

In my case it was M-Tab (probably because of evil-mode?).就我而言,它是M-Tab (可能是因为邪恶模式?)。

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

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