I\'m just starting to get a feel for emacs, but I am frustrated with it\'s tendency to not indent when I press the return key. I know if I press C-j it will do it, but I can\'t
If you want to indent the whole c/c++ file, you just do
That, btw, works also for xml, python code and other types.