by jdminhbg · 16y ago · 0 comments
1) Add lein-swank to the dev-dependencies of the project I'm working on (i.e., add this - :dev-dependencies [[leiningen/lein-swank "1.1.0"]] - to your project.clj file
2) lein deps
3) lein swank
4) M-x slime-connect in emacs, then accept the default host/port
edit: Blogged it http://increasinglyfunctional.com/2010/05/18/my-swank-clojur...
Here's what I had to do: - Download the lein script and put it in my PATH
- Download package.el and put it in my .emacs load-path
- lein self-install
- make a project directory, and 'lein new projname .' inside it
- modify the resulting project.clj to add :dev-dependencies [[leiningen/lein-swank "1.1.0"] [swank-clojure "1.2.1"]]
- lein deps in said directory
- Install package.el, and then install slime, clojure-mode, slime-repl, and swank-clojure with it (and fight with it and get confused about why it didn't know about slime-repl until I installed it several times but then noticed it when I restarted Aquamacs)
- lein swank in said directory
- M-x slime-connect from Aquamacs
Am I doin it rong?
2. Ran "M-x package-list-packages"
3. Installed clojure-mode, slime, slime-repl, and swank-clojure.
Then I rebooted emacs and "M-x slime" just works for me (aquamacs).