diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
new file mode 100644
--- /dev/null
+++ b/contrib/examples/fix.hgrc
@@ -0,0 +1,3 @@
+[fix]
+clang-format:command = clang-format --style file -i
+clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"