Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 813 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 813 Bytes

SML major mode using tree-sitter

License: GPL v3

This mode provides the following features for Standard ML (SML) buffers:

  • Indentation
  • Font-locking
  • Imenu
  • Structural navigation

example

Installing

Emacs 29.1 or above with tree-sitter support is required.

This package requires the SML tree-sitter grammar from https://github.com/MatthewFluet/tree-sitter-sml. It won't work with other parsers!

Installing the SML parser

Add the source to treesit-language-source-alist.

(add-to-list
 'treesit-language-source-alist
 '(sml "https://github.com/MatthewFluet/tree-sitter-sml"))

Then run M-x treesit-install-language-grammar and select sml to install.