this is useful if you want to sciptlize emacs behavior

http://www.gnu.org/software/emacs/emacs-lisp-intro/html_mono/elisp.html#Batch-Mode