There are two things you need to set up in order to get caml mode working
emacs and make install.
emacs --batch --eval '(progn (setq load-path (cons "." load-path)) (byte-compile-file "caml-xemacs.el") (byte-compile-file "caml-emacs.el") (byte-compile-file "caml.el") (byte-compile-file "inf-caml.el") (byte-compile-file "caml-help.el") (byte-compile-file "caml-types.el") (byte-compile-file "camldebug.el"))'-- this will create .elc files which will be a touch more efficient. No big deal if you don't do it.
; If you used option 4 above and installed your own version of the
; files and not in the site-lisp/ directory, uncomment this line and
; replace LOC below with the directory you put the files in
; (setq load-path (cons "LOC" load-path))
(setq auto-mode-alist
(cons '("\\.ml[iylp]?$" . caml-mode) auto-mode-alist))
(autoload 'caml-mode "caml" "Major mode for editing Caml code." t)
(autoload 'run-caml "inf-caml" "Run an inferior Caml process." t)
; for highlighting
(if window-system (require 'caml-font))
Note for Windows users: Windows doesn't always have a notion of "home"
directory; in that case you can put the .emacs file at C:/. More detailed
information on the .emacs file location for Windows users.
(caml) in the status line
at the bottom indicating you are in caml mode. Also, you can execute the extended command
caml-mode (type meta-x caml-mode; meta-x is either holding
down the meta-key and pressing x, or ESC followed by x)) to start caml-mode in a
buffer. To start a shell window running ocaml, use the extended
command run-caml (or do C-c C-s which will start a caml
shell if it is not already running). The caml-mode distribution includes no documentation but is easy to use; control-h m from within emacs gets you the caml mode command list. The main useful commands (C-c means control-C, etc) are
C-c C-e evaluate the phrase the cursor is sitting in the middle of C-c C-r evaluate the whole selected region C-c C-s show the shell window; will automatically run-caml if not running C-c ` go to exact error location in the source
Last modified: Wed Feb 15 10:24:59 EST 2006