emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] externals/caml 6e0e050 134/197: PR#5455: .emacs instructions, a


From: Stefan Monnier
Subject: [nongnu] externals/caml 6e0e050 134/197: PR#5455: .emacs instructions, add lines to recognize ocaml scripts
Date: Sat, 21 Nov 2020 01:19:53 -0500 (EST)

branch: externals/caml
commit 6e0e050bb83aeb6ea9dbbbf296d04afd7c373cc0
Author: Damien Doligez <damien.doligez-inria.fr>
Commit: Damien Doligez <damien.doligez-inria.fr>

    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
---
 README | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/README b/README
index 708909b..ea82a9f 100644
--- a/README
+++ b/README
@@ -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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]