Emacs 23 or newer is needed for Clojure support. Emacs 24 is needed
for the Starter Kit.
> I'm using a Debian
> based system. so I went to http://emacs.naquadah.org/.
> a. I executed> wget -q -O - http://emacs.naquadah.org/key.gpg | sudo
> apt-key add -
> b. I'm now confused as to which version I want: Stable? If so I should
> then follow the directions to add 2 lines to /etc/apt/sources.list,
> and then what do I do?
That page lists a number of packages all starting with
"emacs-snapshot". So if you want to use the terminal version only, try
emacs-snapshot-nox; if you want a debug build, emacs-snapshot-dbg,
etc.
> 2. Once I get emacs 24 installed, the directions sort of leave off
> with " In both cases, you need to launch a Clojure instance with the
> correct classpath settings. This is most commonly done using a build
> tool such as Leiningen. For instructions see the Build Tools section
> of Getting Started."
The next section labeled "Slime and Swank Clojure" links to the readme
for swank-clojure, which explains how to use M-x clojure-jack-in; the
simplest way to get a slime session going. It should probably be
cleaned up a bit since it's accumulated some cruft over the months,
but it's all correct.
-Phil
I see this in my *swank* buffer:
Process swank exited abnormally with code 127
sh: line 1: lein: command not found
lein is on my search path (in ~/bin). Where do I update things so
that it is on the path for the Swank process?
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
;; fix the PATH variable
(defun set-exec-path-from-shell-PATH ()
(let ((path-from-shell (shell-command-to-string "$SHELL -i -c 'echo $PATH'")))
(setenv "PATH" path-from-shell)
(setq exec-path (split-string path-from-shell path-separator))))
(if window-system (set-exec-path-from-shell-PATH))
shove that in your init.el or wherever you are putting your
customisations. it adds your shell path to emacs path and should
enable emacs to find lein.
In Mac OS X, usually programs that are launched from the GUI don't get
their environment variables (like $PATH) set correctly. Supposedly
there's a fix, but it involves editing a file called plist.xml, so I
have a hard time recommending it with a clear conscience.
-Phil
http://www.emacswiki.org/emacs/MacOSTweaks#toc14
I added the following to my init.el:
(setenv "PATH" (concat (getenv "PATH") ":~/bin"))
(setq exec-path (append exec-path `("~/bin")))
Seems like I could have used (add-to-list 'exec-path "~/bin") for the
second line, is that right?
In any case, my next step is to see if Swank is working (it would help
if I knew what Swank was supposed to do!)
Symbol's function definition is void: lisp-eval-last-sexp
I also see this in my *messages* buffer:
error in process filter: require: Symbol's value as variable is void: slime-clj
Any ideas ... even on where to start?
slime-clj is a different poorly-named library that has been renamed to
ritz. Unfortunately the packages are still available for installation.
The swank-clojure readme should cover everything you need as long as
you don't have any other incompatible libraries (like swank-clj or the
CL-compatible version of slime) installed:
https://github.com/technomancy/swank-clojure/blob/1.3.x/README.md The
only piece of elisp you should install is clojure-mode.
-Phil