[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
- [nongnu] externals/caml 02f8809 184/197: Emacs: use symbol boundaries in regular expressions, (continued)
- [nongnu] externals/caml 02f8809 184/197: Emacs: use symbol boundaries in regular expressions, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 4c8c8d3 176/197: makefiles: use 'install' instead of 'cp' in 'make install' targets, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml c9e7f57 186/197: Fix most CheckDoc errors., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 78ec6be 185/197: Transform the README to Markdown, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 333d2f4 191/197: Improve syntax highlighting, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml adafe8a 190/197: Add OPAM file, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 466d703 194/197: Minor improvements to the README, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 1d6cd46 196/197: Add make target for opam release, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 38ebde1 197/197: Generate a caml-mode-site-file, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 29aaf70 193/197: Move the changelog to CHANGES, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bfa612b 195/197: Mention easy ways of installing this package,
Stefan Monnier <=
- [nongnu] externals/caml b6eebe4 192/197: Apply some recommendations of checkdoc, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 9d5dbfb 131/197: - Replaced setq by add-to-list in README, Stefan Monnier, 2020/11/21