• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

opam/H02-Jan-2014-2320

.bzrignoreH A D02-Jan-20146 21

.gitignoreH A D02-Jan-201425 43

COPYINGH A D02-Jan-201417.6 KiB342283

HISTORYH A D02-Jan-20145.9 KiB149122

MakefileH A D02-Jan-20142.6 KiB9472

README.mdH A D02-Jan-20143.9 KiB12588

ocamldebug.elH A D02-Jan-201430.2 KiB767582

sample.mlH A D02-Jan-201417.3 KiB1,2391,050

tuareg-light.elH A D02-Jan-201494 KiB2,4092,085

tuareg-site-file.elH A D02-Jan-20144.2 KiB11070

tuareg.elH A D02-Jan-2014202.5 KiB4,9394,084

README.md

1Tuareg: an Emacs OCaml mode
2===========================
3
4This archive contains files to help editing [OCaml](http://ocaml.org/)
5code, to highlight important parts of the code, to run an OCaml
6toplevel, and to run the OCaml debugger within Emacs.
7
8Contents
9--------
10
11`README`         — This file.
12`HISTORY`        — Differences with previous versions.
13`tuareg.el`      — A major mode for editing OCaml code in Emacs.
14`ocamldebug.el`  — To run the OCaml debugger under Emacs.
15`sample.ml`      — Sample file to check the indentation engine.
16
17Install
18-------
19
20See `tuareg.el`.
21
22
23
24Configuration
25-------------
26
27Add the following line near the beginning of your ~/.emacs file:
28
29    (load "/where/ever/you/put/tuareg-mode/tuareg-site-file")
30
31The Tuareg major mode is triggered by visiting a file with extension
32.ml, .mli, .mly, .mll, and .mlp or manually by M-x tuareg-mode. It
33gives you the correct syntax table for the OCaml language.
34
35Thanks to the work of Stefan Monnier, a new indentation engine based
36on SMIE was written.  To deactivate it, add (setq tuareg-use-smie nil)
37to the top-level of your `.emacs` file.
38
39Usage
40-----
41
42See `tuareg.el`.
43
44Customization
45-------------
46
47The standard Emacs customization tool can be used to configure
48Tuareg options.  It is available from the Options menu and Tuareg's
49Customize sub-menu.
50
51You may also customize the appearance of OCaml code by twiddling the
52variables listed at the start of tuareg.el (preferably using
53`tuareg-mode-hook`, you should not patch the file directly).
54You should then add to your configuration file something like:
55
56    (add-hook 'tuareg-mode-hook
57      (lambda () ... ; your customization code ))
58
59Sample Customizations
60---------------------
61
62Here are random examples of customization you might like to put in
63your ~/.emacs file:
64
65    ;; Indent `=' like a standard keyword.
66    (setq tuareg-lazy-= t)
67    ;; Indent [({ like standard keywords.
68    (setq tuareg-lazy-paren t)
69    ;; No indentation after `in' keywords.
70    (setq tuareg-in-indent 0)
71
72    (add-hook 'tuareg-mode-hook
73              ;; Turn on auto-fill minor mode.
74              (lambda () (auto-fill-mode 1)))
75
76Features, Known Bugs
77--------------------
78
79Cf. online help.
80
81Thanks
82------
83
84Ian Zimmerman for the previous mode, compilation interface and
85debugger enhancement.
86
87Jacques Garrigue enhanced Zimmerman's mode along with an adaptation
88to OCaml (and Labl) syntax. Although this work was performed
89independently, his useful test file and comments were of great help.
90
91Michel Quercia for excellent suggestions, patches, and helpful
92emacs-lisp contributions (full, ready-to-work implementations, I
93should say), especially for Tuareg interactive mode, and browser
94capacities.
95
96Denis Barthou, Pierre Boulet, Jean-Christophe Filliatre and Rémi
97Vanicat for intensive testing, useful suggestions, and help.
98
99Ralf Treinen for maintaining the Debian GNU/Linux package.
100
101Every people who sent me bug reports, suggestions, comments and
102patches. Nothing would have improved since version 0.9.2 without
103their help. Special thanks to Eli Barzilay, Josh Berdine, Christian
104Boos, Carsten Clasohm, Yann Coscoy, Prakash Countcham, Alvarado
105Cuihtlauac, Erwan David, Gilles Défourneaux, Philippe Esperet,
106Gilles Falcon, Tim Freeman, Alain Frisch, Christian Lindig, Claude
107Marché, Charles Martin, Dave Mason, Stefan Monnier, Toby Moth,
108Jean-Yves Moyen, Alex Ott, Christopher Quinn, Ohad Rodeh, Rauli
109Ruohonen, Hendrik Tews, Christophe Troestler, Joseph Sudish, Mattias
110Waldau and John Whitley.
111
112Tuareg mode have been maintained by Albert Cohen until version 1.45.
113
114Jane Street took over maintenance based on Albert Cohen's version 1.46
115(later retracted by him), and released its first version as 2.0.
116
117Reporting
118---------
119
120The official Tuareg home page is located at:
121<https://forge.ocamlcore.org/projects/tuareg/>.
122
123Bug reports & patches: use the tracker:
124<https://forge.ocamlcore.org/tracker/?group_id=43>.
125