On Wed, Feb 18, 2009 at 7:07 PM, Phil Hagelberg <p...@hagelb.org> wrote: > I've been cooking up a little tool to help with running tests using > test-is. It's a little cumbersome to need to switch back and forth > between the test buffer and the repl to see the test results, so I've > created an Emacs mode that actually overlays the results on top of the > test buffer itself. > > I've attached a screenshot of it in action. Basically it colors failing > "is" forms in red and erroring forms in brown. When you put the point in > a failing "is" form and press C-c ', it will show the failure message in > the minibuffer. > That would be really neat! I'm having a bit of trouble setting it up, though:
- I added the clojure-test initialization code to ~/.emacs right after setting up clojure-mode - When loading a .clj file in Emacs, it automatically triggers Slime - However, the file is not actually loaded; I had to C-c C-l - C-c C-' is not bound; if I (run-tests 'clojure-mode.test-is), the tests run but nothing appears in the editor window Any idea what could be wrong? Here's the clojure-mode / clojure-test-mode part of ~/.emacs (autoload 'clojure-mode "clojure-mode" "A major mode for Clojure" t) (add-to-list 'auto-mode-alist '("\\.clj$" . clojure-mode)) (autoload 'clojure-test-mode "clojure-test-mode" "Clojure test mode" t) (add-hook 'clojure-mode-hook (lambda () (save-excursion (goto-char (point-min)) (if (or (search-forward "(deftest" nil t) (search-forward "(with-test" nil t)) (clojure-test-mode t))))) Thanks, -- miʃel salim • http://hircus.jaiku.com/ IUCS • msa...@cs.indiana.edu Fedora • sali...@fedoraproject.org MacPorts • hir...@macports.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---