有没有办法像我在 Common Lisp 中那样扩展 Clojure repl 中的当前命令?
例如,假设我输入了:
Math/
我希望 Tab 键能够扩展到该命名空间中的所有可用变量和函数。
我使用Clojure作为inferior-lisp想知道如何从Clojure中的普通repl以及通过swank slime来做到这一点。
另一次投票支持 Emacs 下的 clojure 模式和 slime。特别是,如果您设置自动完成 http://www.emacswiki.org/emacs/AutoComplete,那么你可以使用我的ac-slime https://github.com/purcell/ac-slime包以在下拉列表中获取上下文感知选项卡完成。这是一个显示实际操作的截屏视频 http://www.youtube.com/watch?v=kH0gOE7rj7g.
而且,除了 technomancy 对嬉皮扩展的评论之外,以下是如何将史莱姆完成与嬉皮扩展联系起来 https://github.com/purcell/hippie-expand-slime.
更新:截至 2012 年,nrepl https://github.com/clojure/tools.nrepl, nrepl.el https://github.com/kingtim/nrepl.el and ac-nrepl https://github.com/purcell/ac-nrepl正在取代史莱姆和 ac-史莱姆;相同的功能,更小、更干净的代码库。
更新2:截至 2013 年 10 月nrepl.el https://github.com/clojure-emacs/cider被重命名为cider https://github.com/clojure-emacs/cider和它和ac-nrepl https://github.com/clojure-emacs/ac-nrepl已经搬到了Clojure-emacs https://github.com/clojure-emacsgithub 上的组织。nrepl https://github.com/clojure/tools.nrepl仍然作为服务器组件
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)