From: Graham Percival Date: Wed, 29 Jul 2009 10:31:09 +0000 (-0700) Subject: CG: add command-line emacs formatting for cc and scm. X-Git-Tag: release/2.13.4-1~260 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b2023a15e53e47af3289b7e7c98d16621f72e1ef;p=lilypond.git CG: add command-line emacs formatting for cc and scm. --- diff --git a/Documentation/contributor/programming-work.itexi b/Documentation/contributor/programming-work.itexi index a49c4989e4..bff7bbf471 100644 --- a/Documentation/contributor/programming-work.itexi +++ b/Documentation/contributor/programming-work.itexi @@ -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