Skip to content

Instantly share code, notes, and snippets.



Last active Dec 25, 2015
What would you like to do?
For Coursera
(defun isml ()
"If sml repl exists, then restart it else create a new repl."
(when (get-buffer "*sml*")
(with-current-buffer "*sml*"
(when (process-live-p "sml")
(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."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment