Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:43:27+00:00 2026-06-13T06:43:27+00:00

I was actually quite happy with using vim + lein repl, but since so

  • 0

I was actually quite happy with using vim + lein repl, but since so many people keep saying that Emacs is the way to go when it comes to Lisps, I’ve decided to give it a try. The problem is now setting up a clojure environment that does all the fancy things that people keep talking about – for now I managed to install clojure-mode and nREPL and that works reasonably well, but I need to get the repl to work with my Leiningen projects if this experiment is going to go somewhere (having a repl in the editor would be pretty pointless if that meant having to manage of all my dependencies (especially classpath related ones) on my own again). The problematic point here is that most articles I see online are

  • A) about swank-clojure, which is deprecated
  • B) about Leiningen 1.x, which is deprecated
  • C) both
  • D) Only cover installation, not how to actually use the things
    you just installed (or even what they do)

Now what I’m looking for is:

  • Get nrepl.el to respect my project.clj
  • Find out what the normal workflow with leiningen + emacs + clojure-mode + nrepl.el is
  • Has nothing to do with the question, but I’d be interested in why emacs sometimes covers up text (changes font color to background color until hit by the cursor) without me asking it to.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:43:28+00:00Added an answer on June 13, 2026 at 6:43 am

    Assuming you have both lein2 and nrepl.el installed:

    Option A:

    You simply open in Emacs a file belonging to your lein project (like foo.clj) and you type M-x nrepl-jack-in. This will start a nREPL with all the deps loaded in and you can play with it more or less in the same manner as with swank-clojure. (that’s what I do most of the time)

    Option B:

    You go to your project’s dir in a terminal and type there:

    lein repl
    

    Afterwards typing M-x nrepl will allow you to connect to the running nrepl session.

    nrepl.el comes with a handy minor mode that allows you to evaluate code in your Clojure source files and load it directly in the repl (same as swank-clojure). A list of all available commands in available in the nREPL menu section.

    P.S.

    nrepl.el was renamed to CIDER.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code that was written without Tests but is actually quite
Ok, so this is actually quite a long story, but i'll try and keep
I'm using mercurial queues quite alot, and I'm really happy with them, but there
I am quite happy using the C++ style casting operators within my code but
After years of ASP.NET development I'm actually quite surprised that I can't seem to
An Android mobile actually does know quite well where it is - but is
That sounds complicated, doesn't it... actually it's quite easy: I have a multi-language app
I actually happily design and develop Java EE Applications for quite 9 years, but
I need an XML-serializable dictionary. Actually, I now have two quite different programs that
I'm actually quite surprised that I'm having so much trouble finding as answer for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.