PR#5455: .emacs instructions, add lines to recognize ocaml scripts

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11979 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2011-12-29 22:10:39 +00:00
parent 0c7984afc6
commit e6c0b95f40
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
O'Caml emacs mode, snapshot of $Date$
OCaml emacs mode, snapshot of $Date$
The files in this archive define a caml-mode for emacs, for editing
OCaml and Objective Label programs, as well as an
@ -13,12 +13,14 @@ Xavier Leroy, extended with indentation by Ian Zimmerman. For details
see README.itz, which is the README from Ian Zimmerman's package.
To use it, just put the .el files in your emacs load path, and add the
following three lines in your .emacs.
following lines in your .emacs.
(add-to-list 'auto-mode-alist '("\\.ml[iylp]?$" . caml-mode))
(autoload 'caml-mode "caml" "Major mode for editing Caml code." t)
(autoload 'run-caml "inf-caml" "Run an inferior Caml process." t)
(autoload 'caml-mode "caml" "Major mode for editing OCaml code." t)
(autoload 'run-caml "inf-caml" "Run an inferior OCaml process." t)
(autoload 'camldebug "camldebug" "Run ocamldebug on program." t)
(add-to-list 'interpreter-mode-alist '("ocamlrun" . caml-mode))
(add-to-list 'interpreter-mode-alist '("ocaml" . caml-mode))
or put the .el files in, eg. "/usr/share/emacs/site-lisp/caml-mode/"
and add the following line in addtion to the four lines above: