Created
June 24, 2012 20:09
-
-
Save tonini/2984719 to your computer and use it in GitHub Desktop.
Little helper for running jasmine-node from emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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