added some stolen code to .emacs