使用emacs组织/清理clojure库
Eclipse具有“组织导入”操作,该操作删除所有未使用的导入并清理通配符导入,以便只保留导入类的实际使用成员 emacs和clojure模式是否存在类似的功能 例如,我有以下几点:使用emacs组织/清理clojure库,emacs,clojure,Emacs,Clojure,Eclipse具有“组织导入”操作,该操作删除所有未使用的导入并清理通配符导入,以便只保留导入类的实际使用成员 emacs和clojure模式是否存在类似的功能 例如,我有以下几点: (ns some.namespace (:use [some.lib] [another.lib])) 从some.lib中,我只使用fn1和fn2other.lib我根本不用。然后,该emacs命令会将其转换为: (ns some.namespace (:use [some.l
(ns some.namespace
(:use [some.lib]
[another.lib]))
从some.lib
中,我只使用fn1
和fn2
other.lib
我根本不用。然后,该emacs命令会将其转换为:
(ns some.namespace
(:use [some.lib :only [fn1 fn2]]))
或同等产品:
(ns some.namespace
(:require [some.lib :refer :all]
[another.lib]))
皈依
(ns some.namespace
(:require [some.lib :refer [fn1 fn2]]))`
看看slamhound:。就我而言,您可以通过lein或通过slamhound.el从emacs运行它:不,如果我们编写这个.el文件就太好了。