How to use repl with emacs and leiningen

I'm starting training in clojure and the hard part of this is with libraries and dependencies ... I have worked with javascript and ruby ​​and they have rubygems and npm ... just plain ... now I'm trying to use leiningen. I installed this, I use emacs and install elein too ... I can create a project, process libraries and dependencies and work fine ... but I can not use repl and my slime "evaluate expression and evaluate region" does not work ... I'm really new to slime and clojure mode .. and still new to leiningen, and I don't know how the workflow works ...

I install my libraries inside the project, my main namespace is called "elein-deps" or "elein-install"

I wrote my code and ran it using "elein-run" ... it works fine

but how can I use repl..s there is an automated way to download leiningen repl or do I need to import my files and namespace inside my repl (sorry, but I'm new to clojure and I am not used to load files and namespaces with it. .. Should I use "load-file" and the full path to my file ... or use "use" ??)

please, if I can explain how the workflow works with leiningen inside clojure I would appreciate it. Many thanks!

+5
source share
1 answer

"require" "use". Leiningen REPL, ": repl-init- script". swank...

P.S. ": repl-init" - ...

P.P.S. M-x clojure -jack-in clojure, , "lein swank" swank REPL

+2

All Articles