aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/tidy/default.conf12
-rwxr-xr-x.local/bin/wrappers/tidy3
2 files changed, 15 insertions, 0 deletions
diff --git a/.config/tidy/default.conf b/.config/tidy/default.conf
new file mode 100644
index 0000000..67a11e7
--- /dev/null
+++ b/.config/tidy/default.conf
@@ -0,0 +1,12 @@
+accessibility-check: 0
+ascii-chars: yes
+clean: yes
+custom-tags: blocklevel
+fix-style-tags: no
+indent-spaces: 2
+indent: yes
+markup: no
+quiet: yes
+show-body-only: yes
+vertical-space: yes
+wrap: 80
diff --git a/.local/bin/wrappers/tidy b/.local/bin/wrappers/tidy
new file mode 100755
index 0000000..d3a0aa4
--- /dev/null
+++ b/.local/bin/wrappers/tidy
@@ -0,0 +1,3 @@
+#!/bin/sh -eu
+$(which tidy --all | grep --invert-match "local/bin" | head -n 1) \
+ -config "$HOME/.config/tidy/default.conf" "$@"