Clojure in Emacs
It was quite confusing to set up clojure for emacs. Setting up clojure-mode
itself was quite easy. Assuming you have the latest emacs with package
manager, you can look for clojure-mode. Make sure the package manager is set
up by putting this in your
iwhen you’re on that line
xto execute the install
You should now have clojure mode. You can test this out by opening a
file and see that it says it’s in clojure-mode.
Now I want to connect this to a REPL. If you google search for this, you’ll see mentions of swank and SLIME. If you go to the github page, you’ll see it mention that the project has been deprecated. It is now replaced by nREPL.
Install nREPL by going through the package manager and choose
nrepl (yes, you
could’ve done this at the same time you installed clojure-mode).