From e6e5d5523d229735ab5f8ec83e10beefcfd00d76 Mon Sep 17 00:00:00 2001 From: Mattias Date: Fri, 13 Mar 2026 01:35:06 +0100 Subject: 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 --- CHANGELOG.md | 7 ++++++- apheleia-formatters.el | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.0