2

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?

SoftTimur
  • 5,630
  • 38
  • 140
  • 292

1 Answers1

2

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.

Louis Roché
  • 876
  • 1
  • 7
  • 19
  • These 2 lines do highlight `.mll` and `.mly`. But when I type `TAB`, the indentation is very odd, how could I make indentation work? – SoftTimur May 29 '16 at 01:57
  • 1
    You can't for now since theses modes were not done for `.mll` and `.mly` files. It pisses me off too but that's how it is for now... – Lhooq May 29 '16 at 03:52