Skip to content

Instantly share code, notes, and snippets.

@Munksgaard
Created September 4, 2012 12:35
Show Gist options
  • Save Munksgaard/3620796 to your computer and use it in GitHub Desktop.
Save Munksgaard/3620796 to your computer and use it in GitHub Desktop.
Emacs + mosml
(require 'sml-mode)
(setq auto-mode-alist (cons '("\\.sml$" . sml-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.sig$" . sml-mode) auto-mode-alist))
(add-hook 'sml-mode-hook
(lambda() ;;; *** SML-mode Customization
(setq sml-program-name "mosml")
(setq sml-default-arg "-P full")
(setq sml-indent-level 4) ; conserve on horizontal space
(setq words-include-escape t) ; \ loses word break status
(setq indent-tabs-mode nil))) ; never ever indent with tabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment