I'm using Emacs, integrated with Leiningen's swank. Each time I need to start working with .clj file I have to:
- Run
emacs pack/my-ns.clj
from console. - Type
M-x lein-swank
. - Compile buffer.
- In Clojure REPL change namespace, i.e. type
(in-ns 'pack.my-ns)
.
How can I automate this process to just run from console something like emacs-clj pack/my-ns.clj
and get my environment ready to use?