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

Signed-off-by: Marcin Wyszynski <marcin.pixie@gmail.com>
Merge pull request #163 from marcinwyszynski/master

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