From e868e084ea66296b75206dfc12f56856f14641d2 Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Sun, 19 Aug 2012 22:38:10 +0200 Subject: [PATCH] GOP2-4: add script for automatically indent Scheme files --- scripts/auxiliar/fixscm.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/auxiliar/fixscm.sh diff --git a/scripts/auxiliar/fixscm.sh b/scripts/auxiliar/fixscm.sh new file mode 100755 index 0000000000..9c8f2f3f65 --- /dev/null +++ b/scripts/auxiliar/fixscm.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# +# Indent and untabify source files (given by their +# filenames in the command line), according to +# LilyPond source style standards. + +elisp_expression='(progn + (delete-trailing-whitespace) + (indent-region (point-min) (point-max) nil) + (untabify (point-min) (point-max)) + (save-buffer))' +for f in "$@"; do + emacs -batch "$f" --eval "${elisp_expression}" +done -- 2.39.2