finish porting all old emacs stuff over.