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
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ profile. This started with version 0.26.0.
M.foo)
```

### Emacs mode

- Add `neocaml-mode` support to `ocamlformat-before-save`
(#2787, @bbatsov)

## 0.28.1

### Highlight
Expand Down
3 changes: 2 additions & 1 deletion emacs/ocamlformat.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ nil (default)."
\(add-hook \\='before-save-hook \\='ocamlformat-before-save)."
(interactive)
(when
(memq major-mode '(tuareg-mode caml-mode ocaml-ts-mode ocamli-ts-mode))
(memq major-mode '(tuareg-mode caml-mode ocaml-ts-mode ocamli-ts-mode
neocaml-mode neocaml-interface-mode))
(ocamlformat)))

(defun ocamlformat--goto-line (line)
Expand Down
Loading