replace autoclose to auto-pairs