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 7856451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:43:11+00:00 2026-06-02T20:43:11+00:00

EDIT For a reason which I haven’t fully understood yet my C-x C-e was

  • 0

EDIT For a reason which I haven’t fully understood yet my C-x C-e was bound to eval-last-sexp and instead of (?) slime-eval-last-expression. Now I can C-x C-e from the .clj buffer and I can at least see directly when my function is (in)correct but, however, this apparently doesn’t make the function I just slime-eval-last-expression “available” to the REPL.

I’ve set up my Emacs to do some Clojure programming and I don’t know if my setup is correct or not.

I’ve got two buffers: one for the .clj file and one for the REPL. I’m using clojure-jack-in to start the REPL.

Apparently I need to always compile the .clj (which also always forces me to save the file with a prompt) and I then need to switch to the REPL and issue a (use ‘myname.space) in the REPL before being able to try, say, a new function I wrote.

This is a lot of keys to press for what seems like a very simple thing.

Now, of course, I could write an Emacs macro doing the whole save / confirm / switch to REPL / issue (use ‘myname.space) shebang but I was wondering if my setup was correct or not?

I guess that my question in other words would be: is the REPL I’m connected to supposed to always be “in synch” with the buffer containing the .clj I’m working on or not?

  • 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-02T20:43:13+00:00Added an answer on June 2, 2026 at 8:43 pm

    You should be using Slime if you’re editing clojure with Emacs. See https://github.com/technomancy/swank-clojure

    Then, when you’ve used M-x clojure-jack-in to start and connect a REPL in emacs, you can just do C-x C-e to compile and load the current sexp, or C-x C-k to compile and load the current buffer.

    In other words, your repl is not “automatically” in sync with whatever you’ve just typed in some clojure code buffer, but there are much quicker and easier ways to send code from a buffer to the running clojure program.

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

Sidebar

Related Questions

edit: Now for some reason each productid is only showing up once instead of
Edit: The reason queue is 2d is because I need a pointer of Command
I'm having a bit of a trouble on my edit form. For some reason
I'm using CFMAIL to send out an email. For some reason, when I edit
I am making an app in which i have to use edit text and
I have this code http://jsfiddle.net/xNHKP/6/ (not working in the fiddle for some reason which
EDIT: Duplicate of Should Entity Framework Context be Put into Using Statement? I've been
EDIT: Now a Major Motion Blog Post at http://messymatters.com/sealedbids The idea of rot13 is
EDIT: I used, finally, inotify. As stefanB says, inotify is the thing to use.
EDIT 1 I apologize but after reading the 2 suggested articles I still don't

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.