Assuming people attempting to use Emacs for Clojure are not adverse to
mucking around with Emacs init files... Also given are clojure-mode.el
in the .emacs.d directory, lein in PATH.
(add-to-list 'load-path (expand-file-name ".emacs.d" "~"))
(autoload 'clojure-mode "clojure-mode" "A major mode for Clojure" t)
(add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode))
(setq inferior-lisp-program "lein repl")
(add-hook 'clojure-mode-hook
'(lambda ()
(setq indent-tabs-mode nil)
(define-key clojure-mode-map "\C-c\C-e" 'lisp-eval-last-sexp)
(define-key clojure-mode-map "\C-x\C-e" 'lisp-eval-last-sexp)))
I use this just fine for my purposes on Linux, Windows XP and Windows
7. I invoke M-x run-lisp from within a lein project 99% of the time
and send expressions over from my editing frame using the above
keybindings, and test functions, etc, in the repl frame.
Maybe one day I'll look at slime/swank stuff, but I haven't found
myself needing much more than this so far.
Lars Nilsson
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en