Skip to content

Instantly share code, notes, and snippets.

@wilkes
Created February 17, 2009 14:25
Show Gist options
  • Save wilkes/65756 to your computer and use it in GitHub Desktop.
Save wilkes/65756 to your computer and use it in GitHub Desktop.
(defun clj-repl (dir)
(interactive (list (read-directory-name "Clojure REPL dir: ")))
(setq default-directory dir)
(slime))
#!/bin/sh
# put in your PATH
export HERE=`pwd`
if [ -d $HERE/lib ]; then
for file in $HERE/lib/*.jar; do
JARS=$JARS:$file
done
fi
if [ -d $HERE/src ]; then
JARS=$JARS:src
fi
if [ -d $HERE/test ]; then
JARS=$JARS:test
fi
if [ -z "$1" ]; then
rlwrap java -cp $JARS clojure.main
else
rlwrap java -cp $JARS clojure.main $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment