Switch to auto-pairs instead of autoclose.