如何做到自动膨胀或函数和变量自动完成在Clojure的REPL [英] How to do automatic expansion or autocomplete of functions and variables in a Clojure repl

查看:136
本文介绍了如何做到自动膨胀或函数和变量自动完成在Clojure的REPL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Clojure的REPL扩大当前的命令像我就能Common Lisp中做什么?

Is there a way to expand the current command at the Clojure repl like I'd be able to do in Common Lisp?

例如说我有类型的:

Math/

我想tab键拓展到该命名空间下所有可用的变量和函数。

I would like the tab key to expand to all the available variables and functions in that namespace.

我用Clojure的低贱,口齿不清想知道如何从Clojure中平原香草REPL做到这一点,并通过斯旺克煤泥。

I'm using Clojure as inferior-lisp would like to know how to do this from the plain vanilla repl in Clojure, and through swank slime.

推荐答案

赞成在Emacs下Clojure的模式和煤泥的另一个投票。特别是,如果你设置自动完成的,那么你可以使用我的 AC-煤泥包来获得一个下拉列表上下文感知标签完成。下面是显示在行动截屏。

Another vote in favour of clojure-mode and slime under Emacs. In particular, if you set up auto-complete, then you can use my ac-slime package to get context-aware tab completion in a dropdown list. Here's a screencast showing it in action.

和,再约technomancy的评论嬉皮扩大,这里是如何配合煤泥完成情况纳入hippie-扩大

And, further to technomancy's comment about hippie-expand, here's how to tie slime completion into hippie-expand.

更新:截至2012年, nrepl ,的 nrepl.el 和的 AC-nrepl 更换煤泥和AC-泥;相同的功能,更小和更清洁的codeBase的。

Update: as of 2012, nrepl, nrepl.el and ac-nrepl are replacing slime and ac-slime; same functionality, smaller and cleaner codebase.

UPDATE2:为2013年10月的 nrepl.el 被重命名为苹果酒而且它和的已经转移到了nofollow的 AC-nrepl href=\"https://github.com/clojure-emacs\" rel=\"nofollow\"> Clojure的-emacs的组织上github上。 nrepl 仍然是服务器组件

Update2: as of Oct 2013 nrepl.el is renamed to cider and it and ac-nrepl have moved to the clojure-emacs organisation on github. nrepl remains as the server component

这篇关于如何做到自动膨胀或函数和变量自动完成在Clojure的REPL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆