From 19491dbb253abd6cec83f213c14bd531407220e9 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 11 Jun 2016 16:57:37 -0400 Subject: software/c: auto-indentation one-liner --- software/c.page | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'software') diff --git a/software/c.page b/software/c.page index 7ebe3c1..a0cb064 100644 --- a/software/c.page +++ b/software/c.page @@ -62,3 +62,11 @@ Zed Shaw Notes * testing: http://c.learncodethehardway.org/book/ex30.html * debug macros: http://c.learncodethehardway.org/book/ex20.html +Auto-Indent Styling +--------------------- + +Via [riolet](https://github.com/riolet/WAFer), this one-liner will auto-indent +files:: + + find . \( -name '*.c' -o -name '*.h' \) -exec indent --no-tabs --linux-style --line-length 90 --indent-level 4 -bli0 \{\} \; + -- cgit v1.2.3