]> git.donarmstrong.com Git - lilypond.git/commitdiff
CG: add command-line emacs formatting for cc and scm.
authorGraham Percival <graham@percival-music.ca>
Wed, 29 Jul 2009 10:31:09 +0000 (03:31 -0700)
committerGraham Percival <graham@percival-music.ca>
Wed, 29 Jul 2009 10:31:09 +0000 (03:31 -0700)
Documentation/contributor/programming-work.itexi

index a49c4989e4295d162662dbbff6af98dc13b71761..bff7bbf47125137b914fa0875a97f85c2b681852 100644 (file)
@@ -250,6 +250,19 @@ This will initiate a search of the remote git repository.
 @section Code style
 @c email to wl@gnu.org when I get here.
 
+@warning{this is pending some confirmation on -devel.  July 2009 -gp}
+
+Command-line script to format stuff with emacs:
+
+@example
+#!/bin/sh
+emacs $1 -batch --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer
+@end example
+
+(that's all on one line)
+
+Save it as a shell script, then run on the file(s) you modified.
+
 @menu
 @end menu