Using CPlusPlusMode in Emacs v24.5.1, I want to auto-create matching parenthesis and curly brace when typing expressions.
More specifically, when typing, e.g., '{', CPlusPlusMode should create a matching parenthesis and move the cursor in between, like in the example below:
if (a < b) {
// cursor here: default behavior
if (a < b) {
// cursor here: anticipated behavior
}