| Emacs and SML |
|
| (autoload 'sml-mode "/users/courses/dSprogSem/SML/sml-mode" () t) (setq auto-mode-alist (cons '("\\.sml$" . sml-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.sig$" . sml-mode) auto-mode-alist)) |
| val x=42 |
| M-x sml-shell | Starts the SML interpreter in a buffer. Called automatically by the send-commands if the buffer doesn't already exist. |
| C-c C-b | (sml-send-buffer) Sends the entire buffer to the SML-shell |
| C-c C-c | (sml-send-function) Sends the block (empty-line delimitered) under the cursor to the SML-shell |
| C-c ' | (sml-next-error) Finds the next error-report in the output and sets the point to the location of that error in the source (should only be used after sml-send-buffer) |
| (defvar sml-prog-name "/usr/local/bin/sml" "Standard ML of New Jersey 110") |
| (setq sml-mode-hook '(lambda() "ML mode hacks" (set-variable 'sml-prog-name "c:/Program Files/sml/bin/sml.bat"))) |