I am working with emacs24 with cc-mode, I want to know how to make my emacs more "clever". After I type a }, it will auto insert a new line and indent as excepted. I want to know how to switch the point to previous line. For example, when i define a function, Now my emacs behavior is:
void f()
{
}
//point
"//point" is the position of cursor after } was input. But i want is this:
void f()
{
//point
}
I hope the position of cursor can switch to previous line and indent automatically. I know emacs can do this, but I don't know how to do it, who can help me?