Use autopair-mode instead of electric-pair-mode.

Also add snippet for custom beamer presentation setup.