(setq auto-mode-alist (cons '("\\.ml[iyl]?$" . caml-mode) auto-mode-alist)) ;; you should probably comment the next line or replace ~remy by another path (setq load-path (cons "~remy/emacs/" load-path)) (autoload 'caml-mode "ocaml" (interactive) "Major mode for editing Caml code." t) (autoload 'camldebug "camldebug" (interactive) "Debug caml mode")