I'd like to re-format all my source files using the Google formatting function for emacs: google-c-style.el (see here).
How can I apply this function to all my source files at once, so that they are all formatted and indented correctly according to the Google style?
There are several pieces to this:
indent-region
is a start, but you might also want to untabify or some other things.mark-whole-buffer
.There's a couple of nice blog posts on doing this here and here.