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

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

[nongnu] externals/caml bfa612b 195/197: Mention easy ways of installing


From: Stefan Monnier
Subject: [nongnu] externals/caml bfa612b 195/197: Mention easy ways of installing this package
Date: Sat, 21 Nov 2020 01:20:05 -0500 (EST)

branch: externals/caml
commit bfa612b7ed9de54f77d77017afd4540f1707f04e
Author: Christophe Troestler <Christophe.Troestler@umons.ac.be>
Commit: Christophe Troestler <Christophe.Troestler@umons.ac.be>

    Mention easy ways of installing this package
    
    Fixes https://github.com/ocaml/caml-mode/issues/1
---
 README.md | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index e0b5a33..6d78b6e 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+[![MELPA](https://melpa.org/packages/caml-badge.svg)](https://melpa.org/#/caml)
+
 OCaml Emacs mode
 ================
 
@@ -16,8 +18,24 @@ package.
 Installation
 ------------
 
-To use it, just put the .el files in your Emacs load path, and add the
-following lines in your [Init File][].
+### MELPA
+
+The easiest way of installing this package is through [MELPA][].  If
+you haven't already done so, [configure
+it](https://melpa.org/#/getting-started) and run [<kbd>M-x
+package-list-packages</kbd>](https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html#Packages).
+
+### OPAM
+
+Alternatively, you can use [OPAM][] and install `caml-mode` and
+`user-setup`:
+
+    opam install caml-mode user-setup
+
+### Manual instllation
+
+To use this package, just put the `.el` files in your Emacs load path,
+and add the following lines in your [Init File][].
 
     (add-to-list 'auto-mode-alist '("\\.ml[iylp]?$" . caml-mode))
     (autoload 'caml-mode "caml" "Major mode for editing OCaml code." t)
@@ -51,7 +69,8 @@ collectively, but it might be a good idea to copy 
`caml-hilit.el` or
 `caml-font.el` to you own directory, and edit it to your taste and
 colors.
 
-Main key bindings:
+Main key bindings
+-----------------
 
 <kbd>TAB</kbd>     indent current line  
 <kbd>M-C-q</kbd>   indent phrase  
@@ -101,5 +120,6 @@ function.
 
 
 [OCaml]: http://ocaml.org/
+[OPAM]: https://opam.ocaml.org/
 [MELPA]: https://melpa.org/
 [Init File]: 
https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html



reply via email to

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