Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created February 22, 2013 16:02
Show Gist options
  • Save v2e4lisp/5014446 to your computer and use it in GitHub Desktop.
Save v2e4lisp/5014446 to your computer and use it in GitHub Desktop.
A little function to restart sml. So you don't have to do "C-c C-d " and sml-run. Just isml!
(defun isml ()
(interactive)
(when (get-buffer "*sml*")
(with-current-buffer "*sml*"
(when (process-live-p "sml")
(comint-send-eof)))
(sleep-for 0.1))
(sml-run "sml" ""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment