Skip to content

Instantly share code, notes, and snippets.

@tonini
Created June 24, 2012 20:09
Show Gist options
  • Save tonini/2984719 to your computer and use it in GitHub Desktop.
Save tonini/2984719 to your computer and use it in GitHub Desktop.
Little helper for running jasmine-node from emacs
(defvar jasmine-buffer
"*jasmine-node-specs-buffer*")
(defun jasmine-compile ()
"Run Jasmine-Node"
(interactive)
(shell-command (concat "jasmine-node " buffer-file-name) (get-buffer-create jasmine-buffer))
(display-buffer jasmine-buffer)
(with-current-buffer jasmine-buffer
(ansi-color-apply-on-region (point-min) (point-max))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment