Implement dwim-tab-mode