Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Supported languages
* **Ledger** ([*ledger-mode*](https://github.com/ledger/ledger-mode))
* **Lua** ([*lua-fmt*](https://github.com/trixnz/lua-fmt), [stylua](https://github.com/JohnnyMorganz/StyLua), [*prettier plugin*](https://github.com/prettier/plugin-lua))
* **Markdown** ([*prettier*](https://prettier.io/), [*prettierd*](https://github.com/fsouza/prettierd), [*deno*](https://deno.land/manual/tools/formatter))
* **Meson** ([*muon fmt*](https://sr.ht/~lattis/muon/))
* **Meson** ([*muon fmt*](https://sr.ht/~lattis/muon/), [*meson format*](https://mesonbuild.com/))
* **Nginx** ([*nginxfmt*](https://github.com/slomkowski/nginx-config-formatter))
* **Nix** ([*nixpkgs-fmt*](https://github.com/nix-community/nixpkgs-fmt), [*nixfmt*](https://github.com/serokell/nixfmt),
[*alejandra*](https://github.com/kamadorueda/alejandra))
Expand Down
9 changes: 8 additions & 1 deletion format-all.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
;; - Ledger (ledger-mode)
;; - Lua (lua-fmt, stylua, prettier plugin)
;; - Markdown (prettier, prettierd, deno)
;; - Meson (muon fmt)
;; - Meson (muon fmt, meson format)
;; - Nginx (nginxfmt)
;; - Nix (nixpkgs-fmt, nixfmt, alejandra)
;; - OCaml (ocp-indent, ocamlformat)
Expand Down Expand Up @@ -1107,6 +1107,13 @@ Consult the existing formatters for examples of BODY."
(:features)
(:format (format-all--buffer-easy executable "fmt" "-")))

(define-format-all-formatter meson-format
(:executable "meson")
(:install "pip install meson")
(:languages "Meson")
(:features)
(:format (format-all--buffer-easy executable "format" "--editor-config" "-")))

(define-format-all-formatter nginxfmt
(:executable "nginxfmt")
(:install "pip install nginxfmt")
Expand Down