Fix some styles for different modes

Fix C++ style so that we don't have indentation in namespaces, as it can
become ugly quite fast.
Also do not use tabulations in shell and xml modes as they can be quite
confusing.