Better behavior for smartparens in c-mode-like

(from https://github.com/xiaohanyu/oh-my-emacs/blob/master/core/ome-miscs.org)