update man page and readme
This commit is contained in:
parent
0a386c3fb8
commit
c4bf0cc25e
14
README.md
14
README.md
|
@ -153,13 +153,15 @@ have it enabled by default with the following configuration
|
||||||
(add-hook 'tuareg-mode-hook 'utop-minor-mode)
|
(add-hook 'tuareg-mode-hook 'utop-minor-mode)
|
||||||
```
|
```
|
||||||
|
|
||||||
If you plan to use utop with another major-mode than tuareg,
|
If you plan to use utop with another major-mode than tuareg, replace
|
||||||
e.g. typerex, then you will need the following configuration instead
|
`tuareg-mode-hook` by the appropriate hook. The utop minor mode will
|
||||||
|
work out of the box with these modes: `tuareg-mode`, `caml-mode` and
|
||||||
|
`typerex-mode`. For other modes you will need to set the following
|
||||||
|
three variables:
|
||||||
|
|
||||||
```scheme
|
- `utop-skip-blank-and-comments`
|
||||||
(autoload 'utop-minor-mode "utop" "Minor mode for utop" t)
|
- `utop-skip-to-end-of-phrase`
|
||||||
(add-hook 'typerex-mode-hook 'utop-minor-mode)
|
- `utop-discover-phrase`
|
||||||
```
|
|
||||||
|
|
||||||
You can also complete text in a buffer using the environment of the
|
You can also complete text in a buffer using the environment of the
|
||||||
toplevel. For that bind the function `utop-edit-complete` to the key
|
toplevel. For that bind the function `utop-edit-complete` to the key
|
||||||
|
|
|
@ -75,14 +75,13 @@ file:
|
||||||
|
|
||||||
then you can run utop by pressing M-x and typing "utop". utop support
|
then you can run utop by pressing M-x and typing "utop". utop support
|
||||||
completion in emacs mode. Just press Tab to complete a word. You can
|
completion in emacs mode. Just press Tab to complete a word. You can
|
||||||
also integrate it with the tuareg or typerex mode. For that add the
|
also integrate it with the tuareg, caml or typerex mode. For that add
|
||||||
following lines to your
|
the following lines to your
|
||||||
.I ~/.emacs
|
.I ~/.emacs
|
||||||
file:
|
file:
|
||||||
|
|
||||||
(autoload 'utop-setup-ocaml-buffer "utop" "Toplevel for OCaml" t)
|
(autoload 'utop-minor-mode "utop" "Minor mode for utop" t)
|
||||||
(add-hook 'tuareg-mode-hook 'utop-setup-ocaml-buffer)
|
(add-hook 'tuareg-mode-hook 'utop-minor-mode)
|
||||||
(add-hook 'typerex-mode-hook 'utop-setup-ocaml-buffer)
|
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
Same as
|
Same as
|
||||||
|
|
Loading…
Reference in New Issue