Last active
December 25, 2015 11:39
-
-
Save bixuanzju/6970466 to your computer and use it in GitHub Desktop.
For Coursera
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
(defun isml () | |
"If sml repl exists, then restart it else create a new repl." | |
(interactive) | |
(when (get-buffer "*sml*") | |
(with-current-buffer "*sml*" | |
(when (process-live-p "sml") | |
(comint-send-eof))) | |
(sleep-for 0.2)) | |
(sml-run "sml" "")) | |
(defadvice sml-prog-proc-load-file | |
(before fresh-sml-repl-then-load-file activate compile) | |
"create a new repl before reload the file." | |
(isml)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment