#! /bin/zsh fix-hooks () { for f in $@; do emacs -Q --batch $f -l hooks.el -f fix-hooks -f save-buffer rm $f~ done }