Fixes up emacs commands so that the TERM variable is set to xterm, since that's how we have tmux configured.
Tries to make tmux as much like xterm as possible. Removes TERM overriding when starting emacs.