Fixes #30 spacemacs/escape-state-term-insert-func