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

Auto emacs format C++ no namespace indent

This commit is contained in:
paboyle 2018-01-15 11:44:54 +00:00
parent 56999474e2
commit 90ea472411

View File

@ -2,5 +2,5 @@
for f in $@ for f in $@
do do
cp $f $f.bak cp $f $f.bak
emacs -batch -l $HOME/.emacs $f --eval '(progn (indent-region (point-min) (point-max) nil ) (save-buffer) ) ' 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 done