OCamlPro/typerex — Issue #7: Invoke the mode on ocaml scripts
Author: dbuenzli
Created: 2012-02-22 21:40:46+00:00
State: open

Add the following lines to `emacs.append`

(add-to-list 'interpreter-mode-alist '("ocamlrun" . typerex-mode))
(add-to-list 'interpreter-mode-alist '("ocaml" . typerex-mode))

They allow to automatically invoke typerex-mode when a source file starts with one of these lines :

#!/usr/local/bin/ocamlrun /usr/local/bin/ocaml
#!/usr/bin/env ocaml

Best,

Daniel