SML-Mode is a major mode for editing Standard-ML.

You can find detailed information on how to get Standard ML of New Jersey installed and integrated with emacs in this blog post.


Command Description Key Sequence
Enter SML ModeMeta-x sml-mode
Run SML REPLMeta-x run-sml
Insert code templateCtrl-c, Space
Send buffer to SML REPL consoleCtrl-c, Ctrl-b
CompileCtrl-c, Ctrl-c
Send region to SML REPLCtrl-c, Ctrl-r
Insert a 'match' expressionMeta-|
Cycle through reported compilation errorsCtrl-x, `