Skip to content

Instantly share code, notes, and snippets.

@zkessin
Created September 5, 2012 12:09
Show Gist options
  • Save zkessin/3635710 to your computer and use it in GitHub Desktop.
Save zkessin/3635710 to your computer and use it in GitHub Desktop.
run-phantomjs
(defun run-phantomjs ()
(message "Phantom JS: %s"
(shell-command-to-string
"phantomjs run-qunit.js http://localhost:8080/test.html|tail -1")))
(add-hook 'after-save-hook 'run-phantomjs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment