class-pathを追加するのが面倒。
jvm系の言語はclass-pathを追加する機会が頻繁にあるのかな?良く分かっていないけれど、~/.clojureに読み込む必要がありそうなファイルを列挙してそれを読み込む関数を書いた。(ファイルならそれ自身、ディレクトリなら直下の.jarファイル)
http://d.hatena.ne.jp/e-o-n/20100124/1264341065
(defun clojure-get-files-from-buffer (buf pattern) (with-current-buffer buf (loop initially (goto-char (point-min)) until (eobp) for file = (buffer-substring-no-properties (point-at-bol) (point-at-eol)) if (file-directory-p file) nconc (directory-files file t pattern t) else collect file do (forward-line 1)))) (defun clojure-class-path-list () (clojure-get-files-from-buffer (find-file-noselect "~/.clojure") "\\.jar$"))