From bed5a14c1e8bd4af7a066664f0ec2b57979bc96b Mon Sep 17 00:00:00 2001 From: shumakl Date: Thu, 3 Apr 2014 11:51:37 -0400 Subject: modify generate.sh to use tab-indent in the app/ directory --- bin/autoindent | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/autoindent (limited to 'bin') 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 -- cgit v1.2.3-2-g168b