1

What do I need to change in tuareg.el to get Emacs to automatically load tuareg-mode for .ml4 files?

I can easily change to tuareg-mode manually, but it would be nice not to have to do that.

Paul Steckler
  • 617
  • 5
  • 19

1 Answers1

3

You don't need to change tuareg.el but your .emacs

(setq auto-mode-alist
  (cons '("\\.ml[iylp]?$" . tuareg-mode) auto-mode-alist))

You must have this line in your .emacs so change it with

(setq auto-mode-alist
  (cons '("\\.ml[iylp4]?$" . tuareg-mode) auto-mode-alist))

Best :-)

Lhooq
  • 4,281
  • 1
  • 18
  • 37
  • Yes, but that code is not in my .emacs, but in a file in /etc/emacs/site-start.d/. The change there does the the trick, thanks. – Paul Steckler Apr 13 '16 at 15:14