Automatically set mode (syntax highlighting) when tab is renamed.

Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>