summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-06-11 16:57:37 -0400
committerbnewbold <bnewbold@robocracy.org>2016-06-11 16:57:37 -0400
commit19491dbb253abd6cec83f213c14bd531407220e9 (patch)
tree434e01a33a790d19429550f9c70db487eb859fb7 /software
parent60de53195efe9bf0af65033552edf889c2036ac3 (diff)
downloadknowledge-19491dbb253abd6cec83f213c14bd531407220e9.tar.gz
knowledge-19491dbb253abd6cec83f213c14bd531407220e9.zip
software/c: auto-indentation one-liner
Diffstat (limited to 'software')
-rw-r--r--software/c.page8
1 files changed, 8 insertions, 0 deletions
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 \{\} \;
+