Use smartparens.