Created
February 22, 2013 16:02
-
-
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!
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 () | |
(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