Skip to content

Commit

Permalink
working version of clojure-here
Browse files Browse the repository at this point in the history
  • Loading branch information
marick committed Aug 4, 2010
1 parent f5ea0e1 commit 9f861df
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions emacs/midje-support.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

(defvar midje-root (expand-file-name "~"))

(defun clojure-here ()
(interactive)
(global-set-key "\^h\^h" 'clojure-visit-source)
(setq midje-root (file-name-directory buffer-file-name))
(defun clojure-here (here)
(interactive "Ddirectory: ")
(with-temp-buffer
(global-set-key "\^h\^h" 'clojure-visit-source)
(setq midje-root here)
(setq default-directory here)
(setq clojure-inferior-lisp-program "lein repl")
(if (get-buffer "*inferior-lisp*") (kill-buffer "*inferior-lisp*"))
;; TODO: figure out how to get rid of double-echo.
(inferior-lisp clojure-inferior-lisp-program))
)

(defvar midje-filename-stash '())
Expand Down

0 comments on commit 9f861df

Please sign in to comment.