Configure smart-tabs-mode only when necessary.