Added condition around setting textmate as editor.