Skip to content

Commit d57fd7c

Browse files
authored
ocamlformat.el (ocamlformat-before-save): support caml-mode (#2433)
1 parent baa6c98 commit d57fd7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: emacs/ocamlformat.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ nil (default)."
9898
9999
\(add-hook \\='before-save-hook \\='ocamlformat-before-save)."
100100
(interactive)
101-
(when (eq major-mode 'tuareg-mode) (ocamlformat)))
101+
(when (memq major-mode '(tuareg-mode caml-mode)) (ocamlformat)))
102102

103103
(defun ocamlformat--goto-line (line)
104104
"Move point to the line numbered LINE."

0 commit comments

Comments
 (0)