diff options
| author | Justin Smestad <justin.smestad@gmail.com> | 2021-10-03 12:10:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-03 11:10:22 -0700 |
| commit | a1e8462dd3fb2116cc3616c27030804cb9ac5069 (patch) | |
| tree | 92aab60f46f2360f006dfbfa9310ec49f05757bb | |
| parent | f46d65c1790378b3038f8fdce04dc68e7f65672a (diff) | |
Elixir support (#48)
* Add elixir formatter
* Fix format for elixir to use stdout
* Add CHANGELOG entry
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | apheleia.el | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 09f2eb0..74a88c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog]. for [LaTeX](https://www.latex-project.org/), and [rustfmt](https://github.com/rust-lang/rustfmt) for [Rust](https://www.rust-lang.org/) ([#24]). +* [Mix format](https://hexdocs.pm/mix/1.12/Mix.Tasks.Format.html) for Elixir ### Bugs fixed * Fix spelling error in generated process names ([#32]). diff --git a/apheleia.el b/apheleia.el index 0fcaf1c..0dd3720 100644 --- a/apheleia.el +++ b/apheleia.el @@ -461,6 +461,7 @@ modified from what is written to disk, then don't do anything." '((black . ("black" "-")) (brittany . ("brittany" file)) (clang-format . ("clang-format" file)) + (mix-format . ("mix" "format" "-")) (gofmt . ("gofmt")) (google-java-format . ("google-java-format" file)) (latexindent . ("latexindent" file)) @@ -489,6 +490,7 @@ commands, lists of strings and symbols, in the format of '((cc-mode . clang-format) (c-mode . clang-format) (css-mode . prettier) + (elixir-mode . mix-format) (go-mode . gofmt) (haskell-mode . brittany) (html-mode . prettier) |
