Friday, January 10, 2014

Getting started with clojure on emacs


I found this link to be the most useful -
http://www.kedrovsky.com/blog/clojure-emacs-nrepl-and-leiningen

You need the following things installed -


  1. leiningen - http://leiningen.org/
  2. emacs - http://ftp.gnu.org/gnu/emacs/windows/

(require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize) (when (not package-archive-contents) (package-refresh-contents)) (defvar my-packages '(clojure-mode nrepl)) (dolist (p my-packages) (when (not (package-installed-p p)) (package-install p)))

And after that
M-x nrepl-jack-in


No comments:

Post a Comment