emacs: more respect to text and js2 modes