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 Mode | Meta-x sml-mode |
| Run SML REPL | Meta-x run-sml |
| Insert code template | Ctrl-c, Space |
| Send buffer to SML REPL console | Ctrl-c, Ctrl-b |
| Compile | Ctrl-c, Ctrl-c |
| Send region to SML REPL | Ctrl-c, Ctrl-r |
| Insert a 'match' expression | Meta-| |
| Cycle through reported compilation errors | Ctrl-x, ` |