Last active
August 29, 2015 14:22
-
-
Save pesterhazy/0d37bfffc9d7264c3b35 to your computer and use it in GitHub Desktop.
profiles.clj for leiningen: vinyasa.pull pulls lein dependencies into a running repl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; An example of `profiles.clj'. You can install it by placing it in the | |
;; ~/.lein/profiles.clj folder | |
;; | |
;; Based on the example given in: https://github.com/zcaudate/vinyasa | |
{:user {:dependencies [[org.clojure/tools.namespace "0.2.4"] | |
[leiningen #=(leiningen.core.main/leiningen-version)] | |
[im.chit/vinyasa "0.3.4"]] | |
:injections | |
[(require '[vinyasa.inject :as inject]) | |
(inject/in ;; the default injected namespace is `.` | |
;; note that `:refer, :all and :exclude can be used | |
[vinyasa.inject :refer [inject [in inject-in]]] | |
[vinyasa.lein :exclude [*project*]] | |
;; imports all functions in vinyasa.pull | |
[vinyasa.pull :all] | |
;; same as [cemerick.pomegranate | |
;; :refer [add-classpath get-classpath resources]] | |
[cemerick.pomegranate add-classpath get-classpath resources] | |
;; inject into clojure.core | |
clojure.core | |
[vinyasa.reflection .> .? .* .% .%> .& .>ns .>var] | |
;; inject into clojure.core with prefix | |
clojure.core > | |
[clojure.pprint pprint] | |
[clojure.java.shell sh])] | |
;; Uncomment this if you want to use Emacs integration for | |
;; Clojure, CIDER: | |
;; :plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT"]]} | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment