Turns out it's not so simple, because electric-pair-text-pairs is autoloadedand thus relying on electric-quote-chars is a problem.
Loading loaddefs.el (source)...
Symbol's value as variable is void: electric-quote-chars
Makefile:535: recipe for target 'emacs' failed
I could:
1. Add an autoload to electric-quote-chars. (Unfortunately I seem to fail at that,
just adding the cookie isn't enough, it has to go into ldefs-boot.el somehow).
2. Replace those (nth...) expressions with the actual quote characters. It's no
more disconnected from a possible customized value in electric-quote-chars
than it is now.
3. Rework elec-pair.el so that lisp expressions are accepted in electric-pair-text-pairs
and evaluated just-in-time.
Anyway, It's been more than 1 year since my last contribution to Emacs, and
I shouldn't make this decision alone. Eli, could you please weigh in or point me
to someone who can? Emacs-devel?
Thanks,
João