Tweaks to smartparens hooks