1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 09:45:36 +00:00
Grid/scripts/format

6 lines
208 B
Plaintext
Raw Normal View History

2018-01-15 00:24:41 +00:00
#!/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) ) "
2018-01-15 00:24:41 +00:00
done