aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlexis Roda <alexis.roda.villalonga@gmail.com>2019-08-11 21:25:25 +0200
committerJuan J. Martínez <jjm@usebox.net>2019-08-11 20:25:25 +0100
commitdbda2ff22441c31fdf3a8d73c5c9cbf54891bef6 (patch)
tree3a28fac2f72a00da9572b612be0b217039944f61 /README.md
parentc11bb8f20fbae5e6077f395dc3d359d5c0e3b131 (diff)
downloadz80count-dbda2ff22441c31fdf3a8d73c5c9cbf54891bef6.tar.gz
z80count-dbda2ff22441c31fdf3a8d73c5c9cbf54891bef6.zip
Configuration file support (#17)
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/README.md b/README.md
index ddd9b37..0f125ef 100644
--- a/README.md
+++ b/README.md
@@ -152,6 +152,41 @@ Where A, B, T0 and T1 are:
- T0 is the subtotal when the conditional is not met.
- T1 is the subtotal when the conditional is met.
+## Config file
+
+`z80count` will look for a config file in the following places, in order:
+
+- the file given in the environment variable `Z80COUNT_RC`.
+
+- a file `z80countrc` in the directory given in the environment variable
+ `XDG_DEFAULT_HOME` or, if this variable is undefined or empty, in
+ the directory `~/.config`.
+
+- a file `.z80countrc` in the home directory.
+
+Example:
+
+```
+[z80count]
+# Column to align newly added comments
+# column = 50
+
+# Enable debug (show the matched case)
+# debug = no
+
+# Include subtotals
+# subtotals = no
+
+# Number of spaces for each tab
+# tab width = 8
+
+# Keep previous cycle annotations in the comment.
+# keep cycles = no
+
+# Use tabs to align newly added comments instead of spaces
+# use tabs = yes
+```
+
## Editor support
- [z80count-el](https://github.com/patxoca/z80count-el), emacs