tweak(erlang): format w/ erlfmt instead of efmt

This commit is contained in:
Eleanor Bartle
2024-09-08 05:11:43 +10:00
committed by GitHub
parent ed05e4c088
commit ac1122ae67
3 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@
:mode ("/rebar\\.config\\(?:\\.script\\)?\\'" . erlang-mode)
:mode ("/\\(?:app\\|sys\\)\\.config\\'" . erlang-mode)
:config
(set-formatter! 'efmt '("efmt" "-") :modes '(erlang-mode))
(set-formatter! 'erlfmt '("rebar3" "fmt" "-") :modes '(erlang-mode))
(when (modulep! +lsp)
(add-hook 'erlang-mode-local-vars-hook #'lsp! 'append))