electric-pair-mode for Scala