Created
March 25, 2010 15:15
-
-
Save nipra/343657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Step 1: Follow steps from http://tromey.com/elpa/install.html and install `swank-clojure'. | |
;; Step 2: mkdir ~/.emacs.d.clj | |
;; Step 3: mv ~/.emacs ~/.emacs.d/init.el | |
;; Step 4: Copy swank-clojure, slime, slime-repl & clojure-mode directories from `~/.emacs.d/elpa/' to `~/.emacs.d.clj/' | |
;; Step 5: Create an `init.el' file in `~/.emacs.d.clj' directory | |
;; Step 6: mkdir -p ~/clojure-project/{lib,classes,src} | |
;; Step 7: cd ~/clojure-project/lib | |
;; Step 8: wget -cv http://build.clojure.org/snapshots/org/clojure/clojure/1.1.0-master-SNAPSHOT/clojure-1.1.0-master-20091231.150150-10.jar | |
;; Step 9: wget -cv http://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.1.0-master-SNAPSHOT/clojure-contrib-1.1.0-master-20100114.180141-21.jar | |
;; Step 10: wget -cv http://repo.technomancy.us/swank-clojure-1.1.0.jar | |
;; Step 11: C-x C-f ENTER ~/.emacs.d.clj/init.el & copy the contents of this file to `~/.emacs.d.clj/init.el' | |
;; All Done and set. | |
;; Step 12: emacs-snapshot-gtk -q -l ~/.emacs.d.clj/init.el | |
;; Step 13: M-x swank-clojure-project ENTER ~/clojure-project ENTER | |
;; You can start Emacs with your old config with: emacs-snapshot-gtk -q -l ~/.emacs.d/init.el | |
(setq additional-paths '("~/.emacs.d.clj" | |
"~/.emacs.d.clj/swank-clojure-1.1.0" | |
"~/.emacs.d.clj/slime-20091016" | |
"~/.emacs.d.clj/slime-repl-20091016" | |
"~/.emacs.d.clj/clojure-mode-1.6")) | |
(setq load-path (append additional-paths load-path)) | |
;; Slime | |
(require 'slime-autoloads) | |
(require 'slime-repl-autoloads) | |
(add-hook 'lisp-mode-hook (lambda () (slime-mode t))) | |
(add-hook 'inferior-lisp-mode-hook (lambda () (slime-mode t))) | |
;; Clojure | |
(require 'swank-clojure-autoloads) | |
(add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment