Emacs 如何别名Alembic提供的依赖项?

Emacs 如何别名Alembic提供的依赖项?,emacs,clojure,cider,Emacs,Clojure,Cider,如果我在Emacs苹果酒中评估以下内容: (use 'alembic.still) (alembic.still/distill '[enlive "1.1.5"]) (require '[net.cgrand.enlive-html :as html]) (html) 。。。计算(html)以查看它是否是可识别的符号会产生“无法解析符号”错误。我正在通过连接到REPL的苹果酒进行评估 如何使用Alembic提供的依赖项作为别名?您的代码不起作用,因为html是此处命名空间的别名,而不是

如果我在Emacs苹果酒中评估以下内容:

(use 'alembic.still)

(alembic.still/distill '[enlive "1.1.5"])

(require '[net.cgrand.enlive-html :as html])

(html)
。。。计算(html)以查看它是否是可识别的符号会产生“无法解析符号”错误。我正在通过连接到REPL的苹果酒进行评估


如何使用Alembic提供的依赖项作为别名?

您的代码不起作用,因为
html
是此处命名空间的别名,而不是符号。但是,enlive的功能应该可以发挥作用:

(use 'alembic.still)

(alembic.still/distill '[enlive "1.1.5"])

(require '[net.cgrand.enlive-html :as html])

(html/html-snippet "<div>Hello world</div>")
(使用“alembic.still”)
(alembic.still/District'[enlive“1.1.5”])
(需要“[net.cgrand.enlive-html:作为html])
(html/html片段“Hello world”)

我现在明白了。非常感谢。