emacs: electric-pair-mode and less-minor-mode.

Replace autopair by electric-pair-mode.
Refactor less-minor-mode initialization.