replace electric pair with autopair for older emacs versions