diff options
| author | Mattias <mattias@kojin.tech> | 2026-03-13 01:35:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-12 17:35:06 -0700 |
| commit | e6e5d5523d229735ab5f8ec83e10beefcfd00d76 (patch) | |
| tree | 3f4fe1b513628775da4d1e13a32a19d5e1a851ec | |
| parent | 011e7b999552f3c0730035183a4a6dfb60c10182 (diff) | |
OCaml: Add neocaml modes for ocamlformat (#389)
Add neocaml-mode and neocaml-interface-mode to the list of modes that
can be formatted with ocamlformat
| -rw-r--r-- | CHANGELOG.md | 7 | ||||
| -rw-r--r-- | apheleia-formatters.el | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index b363f45..47424db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,15 @@ The format is based on [Keep a Changelog]. ## Unreleased ### Enhancements -* Better support for BSD OSes using `gdiff` for RCS formatting, +* Ocamlformat is now used in `neocaml-mode` and `neocaml-interface-mode` + in addition to `tuareg-mode` + ([#389]). + +* Better support for BSD OSes using `gdiff` for RCS formatting, fallback to `diff`, which is the default GNU utility in Linux ([#388]). [#388]: https://github.com/radian-software/apheleia/pull/388 +[#389]: https://github.com/radian-software/apheleia/pull/389 ## 4.4.3 (released 2026-02-21) ### Formatters diff --git a/apheleia-formatters.el b/apheleia-formatters.el index a6f2126..19b0c01 100644 --- a/apheleia-formatters.el +++ b/apheleia-formatters.el @@ -380,6 +380,8 @@ rather than using this system." ;; markdown code in so many different ways and we don't want to ;; try imposing a standard by default (nasm-mode . asmfmt) + (neocaml-interface-mode . ocamlformat) + (neocaml-mode . ocamlformat) (nix-mode . nixfmt) (nix-ts-mode . nixfmt) (nomad-mode . nomad) |
