Installing the Cider module
is still relatively simple, is to use list-packages find, find cider after installation.
Command installation directly with official documents will fail, or use the method above.
Using middleware to match versions
Add the penultimate line to the project's PROJECT.CLJ file
(Defproject Project1 "0.1.0-snapshot" :d escription "fixme:write description" : url "Http://example.com/FIXME " : License {: Name" Eclipse Public License " : url" http://www.eclipse.org/legal/epl-v10.html "} : dependencies [[Org.clojure/clojure] 1.7.0 "] [Clj-http" 2.0.0 "]] :p lugins [[Cider/cider-nrepl] 0.10.0- SNAPSHOT "]] : main Project1.core)
Run
Open the project source code file CORE.CLJ
Then Emacs runs the command cider-jack-in in M-x, which initiates the CIDER-NREPL connection REPL process. There are two buffer, the above is the source code, the following is the REPL
It would be nice to see the paragraph below. Cider-nrepl did a version-matching job.
Type a line of code in source buffer, move the cursor to the end of the line, press C-x C-E to run, and the results will appear in REPL buffer.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
EMACS Installation Clojure Development environment