According to https://www.emacswiki.org/emacs/AutoPairs the package smartparens
supports an electric pair of any length for example \{
.
My question about the possibility that the built-in electric-pair-mode
can do it. I tried this without success:
(add-hook 'LaTeX-mode-hook
(lambda ()
(define-key LaTeX-mode-map "\\{" 'electric-pair)))
electric-pair-mode
, this minor mode is actually disabled in AUCTeX ifLaTeX-electric-left-right-brace
is non nil.