From 3232ba8a4cf0209ed5564a4da168e0c0e668915b Mon Sep 17 00:00:00 2001 From: lePerdu Date: Sun, 10 Nov 2019 18:11:36 -0500 Subject: [PATCH] Use elm-format for formatcmd in Elm --- rc/filetype/elm.kak | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc/filetype/elm.kak b/rc/filetype/elm.kak index 2ba8d68a5..0f50541c2 100644 --- a/rc/filetype/elm.kak +++ b/rc/filetype/elm.kak @@ -25,6 +25,11 @@ hook -group elm-highlight global WinSetOption filetype=elm %{ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/elm } } +hook global WinSetOption filetype=elm %{ + set-option window formatcmd 'elm-format --stdin' +} + + provide-module elm %[ # Highlighters