File: indent

package info (click to toggle)
hkl 5.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 40,776 kB
  • sloc: ansic: 56,912; haskell: 5,879; python: 4,591; makefile: 1,137; cpp: 976; sh: 215; xml: 168; perl: 133; lisp: 80
file content (13 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# PUBLIC DOMAIN
if [ -z "$1" ]; then
    echo  usage: $0 file-to-indent file2 file3 ...
    exit 1
fi

for i in $@; do
    echo Loading $i
    emacs --batch --load ../Documentation/hkl-default.el --file $i \
	-f c-mode --eval "(indent-region (point-min) (point-max) nil)" -f save-buffer
done