fix paren matching in emacs mode. Closes #77