change tmux title when ssh
add prefs about major-mode detection
fix for emacs term-mode