diku-dk / smlfmt.el

Emacs minor mode for running smlfmt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smlfmt.el

MELPA

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-file the smlfmt.el file.

  • Or add its directory to your load-path and (require 'smlfmt).

Additional configuration

The package can be configured via the usual customize-group RET smlfmt mechanism.

About

Emacs minor mode for running smlfmt

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%