Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clarification of a point in the doc

  • Loading branch information...
commit 83d85fef0635cee2169483a6c54b0cb00a982de2 1 parent 3447b71
@AltGr AltGr authored
Showing with 9 additions and 5 deletions.
  1. +5 −0 .ocp-indent
  2. +4 −5 README.md
View
5 .ocp-indent
@@ -3,6 +3,11 @@
# Copy to the root of your project, customise, and transparently get consistent
# indentation on all your ocaml source files.
+# Starting the configuration file with a preset ensures you won't fallback to
+# definitions from "~/.ocp/ocp-indent.conf".
+# These are `normal`, `apprentice` and `JaneStreet` and set different defaults.
+normal
+
# Number of spaces used in all base cases, for example:
# let foo =
# ^^bar
View
9 README.md
@@ -83,11 +83,10 @@ transparently ensure consistency in projects with many contributors, without
requiring them to change their settings in any way (except that, obviously, they
need to use ocp-indent !).
-ocp-indent will look for `~/.ocp/ocp-indent.conf` to setup its default, then
-search for a `.ocp-indent` file in the current directory and its parents,
-stopping if one if found. These parameters can still, of course, be overridden
-by the environment variable `OCP_INDENT_CONFIG` or the command-line options, in
-this order.
+If a `.ocp-indent` file is found in the current directory or its ancestors, it
+overrides definitions from `~/.ocp/ocp-indent.conf` and the built-in default.
+The command-line can of course still be used to override parameters defined in
+the files.
Have a look at ocp-indent's own [`.ocp-indent`](.ocp-indent) file for an
example.
Please sign in to comment.
Something went wrong with that request. Please try again.