sketched in testing .emacs stuff to auto-add the modes
added docs and rewrote for consistency