diff --git a/tools/emacs-format-js.el b/tools/emacs-format-js.el deleted file mode 100644 index 0b9cb30ed8..0000000000 --- a/tools/emacs-format-js.el +++ /dev/null @@ -1,30 +0,0 @@ -;;; File: emacs-format-file -;;; Stan Warford -;;; 17 May 2006 - -(setq js-indent-level 2) -(custom-set-variables - '(indent-tabs-mode nil) - '(tab-width 2)) - -(defun emacs-format-js () - "Format the whole buffer." - (js-mode) - (indent-region (point-min) (point-max) nil) - (delete-trailing-whitespace) - (save-buffer) - ) - -(defun emacs-format-js-ident () - "Format the whole buffer." - (js-mode) - (indent-region (point-min) (point-max) nil) - (save-buffer) - ) - -(defun emacs-format-js-clean () - "Format the whole buffer." - (js-mode) - (delete-trailing-whitespace) - (save-buffer) -) diff --git a/tools/format-js.sh b/tools/format-js.sh deleted file mode 100755 index 2deb9bd368..0000000000 --- a/tools/format-js.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -echo "# Removing tabs" -find ./ -regex "^\.\(/[a-zA-Z0-9_-.]*\)*\.js" -exec sed -i 's/ //g' {} \; - -echo "# Indent files" -SCRIPT=$(readlink -f $0) -SCRIPTPATH=`dirname $SCRIPT` -find ./ -regex "^\.\(/[a-zA-Z0-9_-.]*\)*\.js" -exec emacs -batch {} -l ${SCRIPTPATH}/emacs-format-js.el -f emacs-format-js \;