1dune-config(5) Dune manual dune-config(5)
2
3
4
6 ~/.config/dune/config
7
9 Unless --no-config or -p is passed, Dune will read a configuration file
10 from the user home directory. This file is used to control various
11 aspects of the behavior of Dune.
12
13 The configuration file is normally ~/.config/dune/config on Unix
14 systems and Local Settings/dune/config in the User home directory on
15 Windows. However, it is possible to specify an alternative
16 configuration file with the --config-file option.
17
18 The first line of the file must be of the form (lang dune X.Y) where
19 X.Y is the version of the dune language used in the file.
20
21 The rest of the file must be written in S-expression syntax and be
22 composed of a list of stanzas. The following sections describe the
23 stanzas available.
24
26 Syntax: (display MODE)
27
28 This stanza controls how Dune reports what it is doing to the user.
29 This parameter can also be set from the command line via --display
30 MODE. The following display modes are available:
31
32 progress
33 This is the default, Dune shows and update a status line as build
34 goals are being completed.
35
36 quiet
37 Only display errors.
38
39 short
40 Print one line per command being executed, with the binary name on
41 the left and the reason it is being executed for on the right.
42
43 verbose
44 Print the full command lines of programs being executed by Dune,
45 with some colors to help differentiate programs.
46
47 Note that when the selected display mode is progress and the output is
48 not a terminal then the quiet mode is selected instead. This rule
49 doesn't apply when running Dune inside Emacs. Dune detects whether it
50 is executed from inside Emacs or not by looking at the environment
51 variable INSIDE_EMACS that is set by Emacs. If you want the same
52 behavior with another editor, you can set this variable. If your editor
53 already sets another variable, please open a ticket on the ocaml/dune
54 github project so that we can add support for it.
55
57 Syntax: (jobs NUMBER)
58
59 Set the maximum number of jobs Dune might run in parallel. This can
60 also be set from the command line via -j NUMBER.
61
62 The default for this value is 4.
63
65 Check bug reports at https://github.com/ocaml/dune/issues
66
67
68
69Dune dune-config(5)