Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created March 11, 2013 14:13
Show Gist options
  • Select an option

  • Save rlb3/5134516 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/5134516 to your computer and use it in GitHub Desktop.
run a test
(defun rlb3/run-file-run-command (command dir)
(with-temp-buffer
(cd dir)
(compile command)))
(defun rlb3/run-test ()
(interactive)
(let ((file (buffer-file-name)))
(rlb3/run-file-run-command (concat "prove -v --nocolor " file) "/usr/local/cpanel")))
(global-set-key (kbd "C-c o r ") 'rlb3/run-test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment