mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(format): add :lang sml formatter
This commit is contained in:
@ -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.")))
|
Reference in New Issue
Block a user