EMACS Installation Clojure Development environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.