1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 01:35:36 +00:00
Grid/scripts/format
2018-01-15 11:44:54 +00:00

6 lines
208 B
Bash
Executable File

#!/bin/bash
for f in $@
do
cp $f $f.bak
emacs -batch -l $HOME/.emacs $f --eval "(progn (c-set-offset 'innamespace 0) ( c++-mode ) ( indent-region (point-min) (point-max) nil ) (save-buffer) ) "
done