Autopair mode to mimic Textmate.