Use editor#activeEnterMode rather than config#enterMode.