Highlight mll and mly files

315 Views Asked by At

I am rewriting my .emacs. At the moment, .ml files are well highlighted, whereas there is no mode for .mll or .mly files. Here is my .emacs, does anyone know how to amend it?

Additionally, am I using tuareg-mode or ocp-indent?

1

There are 1 best solutions below

2
On BEST ANSWER

I you want to use tuareg for .mll and .mly, you can add those lines:

(add-to-list 'auto-mode-alist '("\\.mll\\'" . tuareg-mode))
(add-to-list 'auto-mode-alist '("\\.mly\\'" . tuareg-mode))

You are using both tuareg and ocp-indent. But I think this is ocp-indent that is handling the indentation.