google autopair.el
Hi, When using 'electric braces' in Visual Studio, MonoDevelop and other tools, I like the behaviour where the closing brace is auto-detected.