feat(format): add :lang sml formatter
This commit is contained in:
parent
d8dc579fcb
commit
7b46177d19
2 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
:mode "\\.s\\(?:ml\\|ig\\)\\'"
|
||||
:config
|
||||
(set-repl-handler! 'sml-mode #'run-sml)
|
||||
(set-formatter! 'smlformat '("smlformat") :modes '(sml-mode))
|
||||
|
||||
;; don't auto-close apostrophes (type 'a = foo) and backticks (`Foo)
|
||||
(sp-with-modes 'sml-mode
|
||||
|
|
5
modules/lang/sml/doctor.el
Normal file
5
modules/lang/sml/doctor.el
Normal file
|
@ -0,0 +1,5 @@
|
|||
;;; lang/sml/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (executable-find "smlformat")
|
||||
(warn! "Couldn't find smlformat. Formatting will be disabled.")))
|
Loading…
Add table
Add a link
Reference in a new issue