Extend smartparens to do some cleverness

Thanks to graphene and oh-my-emacs