title: Emacs open run command save exit
body: <p>I use <a href="https://google-styleguide.googlecode.com/svn/trunk/google-c-style.el" rel="nofollow">google-c-style.el</a> for C/C++ projects in Emacs. Like many Emacs modes, the indentation is automatically set. For any given file I can open it, select the whole document, then press Tab to reset all indentations, save it, then exit.</p>
  
  <p>I have a large code base that I'd like to perform this procedure on, but I want to do it automatically from the command line or a shell script. What is the best way to accomplish this? Assume I have already found the list of files I want to run it on.</p>