stuff from http://www.masteringemacs.org/articles/2010/11/14/disabling-prompts-emacs/