smlfmt.el
November 7, 2023 ยท View on GitHub
Format SML source code using
smlfmt. Requires
reformatter.el, on top of which this package is a very small number
of lines of code.
Usage
With use-package:
(use-package smlfmt
:hook (sml-mode . smlfmt-format-on-save-mode)
:bind
(:map sml-mode-map
("C-c r" . smlfmt-format-buffer)))
-
Or just
load-filethesmlfmt.elfile. -
Or add its directory to your
load-pathand(require 'smlfmt).
Additional configuration
The package can be configured via the usual customize-group RET smlfmt mechanism.