bbatsov/emacs-prelude — Issue #38: identation of c/c++ mode is weird
Author: ricardoshaw
Created: 2011-12-07 09:34:21+00:00
State: open

When I write a function prototype like:
void foo_bar(int x, int y) {CURSOR}, just right after I insert `{`, electric-pair helps me insert the `}`. then I just type Enter, while the cursor just start from first column. If it's in a c-mode, after I type some expressions and a `;`, the indentation seems alright. But if it's in a c++-mode, it seems not. This case happens when I write a class, namspace, etc...sometimes it won't indent, sometimes it indent more(esp. when write a destructor...)