Didn't consider that the mode can be set from environment variable, then it can just be automatically set from my ssh command, thanks for the tip!
Searching back in the buffer in emacs mode is the one thing I've been keep having to look up
Searching back in the buffer in emacs mode is the one thing I've been keep having to look up
For tmux, it will look at VISUAL/EDITOR so for vi keys you could just try to remember to run it as "VISUAL=vi tmux" or to run "tmux set -g mode-keys vi" if you forget.