Skip to content

Instantly share code, notes, and snippets.

@mudphone
Last active December 12, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mudphone/4698169 to your computer and use it in GitHub Desktop.
Save mudphone/4698169 to your computer and use it in GitHub Desktop.
Clojure dev with Lein 2 and nrepl (Swank-less)

Before heading down this path, consider using Emacs Live, which is a nice set of defaults for working with Clojure, Overtone and Quil.

Also, check out this nice write-up on debugging with nREPL.

I also drew inspiration (copied things) from Ryan Neufeld's config, which you should also consider using.

Finally, you can check out my ~/.emacs.d/init.el config on GitHub.

All this as of May, 2013...

install lein 2

  • Follow the install instructions.
  • download lein script, it will boot strap itself
  • install on path, rename to lein, chmod 755
  • run lein --version Leiningen 2.0.0 on Java 1.6.0_37 Java HotSpot(TM) 64-Bit Server VM

Emacs >= 24

Emacs Starter Kit

  • look at my init.el
  • install the latest version
  • install the following packages with M-x package-install
    • clojure-mode
    • nrepl
    • nrepl-ritz

Kyle Only (everyone else can skip this)

If you're following along with my terminal helpers repo, do this:

  • install the following packages with M-x package-install
    • maxframe
  • link .mudphone/config/emacs/vendor to ~/.emacs.d/vendor

nrepl (already installed)

  • read the docs
  • at a minimum, check the keybindings out in the README

nrepl auto-complete

verify your config

  • Check out my init.el file (listed above) for the sections on auto-complete, ac-nrepl section.
@samaaron
Copy link

There's also Emacs Live: http://overtone.github.com/emacs-live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment