Fixing emacs terminal binding