-
Notifications
You must be signed in to change notification settings - Fork 81
Emacs
tutysara edited this page Feb 19, 2012
·
8 revisions
If you don't know Emacs, you may want to pick one of the choices above. The learning curve here is steep.
-
Make sure you have Java installed.
-
Make sure you have leiningen installed.
-
Clone the labrepl project and change directory into it.
-
Run
lein deps
to install all the dependent libraries. -
Install Emacs Starter Kit using elpa:
- Install package.el (Not required for emacs version > 23)
cd ~/.emacs.d
-
wget http://bit.ly/pkg-el23 -O package.el
- this will download package.el - Open package.el in emacs
~/.emacs.d/emacs package.el
and eval bufferM-x eval-buffer
- Include marmalade repo
(require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize)
paste this in scratch and eval bufferM-x eval-buffer
- Refresh package contents
M-x package-refresh-contents
- Install starter-kit
M-x package-install RET starter-kit
- Install package.el (Not required for emacs version > 23)
-
Within Emacs run ELPA
M-x package-list-packages
, go to the following packages and pressi
to select:- clojure-mode
- slime-repl
- slime-clj
-
Once the three packages are selected press
x
to install them. Close Emacs when the installation completes. -
From a terminal in the labrepl directory run the swank process:
lein swank
-
Run Emacs again
-
Connect to the running clojure image
M-x slime-connect
accepting the defaults.
To run the labrepl:
- In the slime REPL, type:
(require 'labrepl)
(labrepl/-main)
- Browse to http://localhost:8080
- Enjoy the labs!