Skip to content

Instantly share code, notes, and snippets.

@bixuanzju bixuanzju/sml.el
Last active Dec 25, 2015

Embed
What would you like to do?
For Coursera
(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
You can’t perform that action at this time.