diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-03 16:15:46 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-03 16:15:46 -0400 |
commit | 5169363d6698fb87372efcb7ace552b89953584e (patch) | |
tree | ff42d819be510dfe929b4cd9dbc1cd25f51c9785 /bin/autoindent | |
parent | 2b79a033262dfe610eb22b7f6b3614db9cb134b1 (diff) | |
parent | 9f19d0e16d7920e07255c0fbe596c518d1aa415f (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'bin/autoindent')
-rwxr-xr-x | bin/autoindent | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/autoindent b/bin/autoindent new file mode 100755 index 0000000..c45da1e --- /dev/null +++ b/bin/autoindent @@ -0,0 +1,10 @@ +#!/bin/bash +file=$1 +sed -i 's/^\s*//' "$file" +emacs --batch "$file" \ + --eval '(setq indent-tabs-mode t)' \ + --eval '(setq ruby-indent-level 4)' \ + --eval '(setq tab-width 4)' \ + --eval '(setq make-backup-files nil)' \ + --eval '(indent-region (point-min) (point-max) nil)' \ + -f save-buffer |