I want emacs to automatically reset it's indentation level to 0 at one specific point in a file.
For example: Because I have nested-nested-nested-.. namespaces, in the C++-Files I would like to not to indent the whole body inside the namespaces.
#include <vector>
namespace qw {
namespace impl {
using std::vector;
class index_impl {
vector<string> entries;
public:
void add(const string &normalized, const string& original);
string getBestMatch(const string& normalized) const;
};
} // namespace impl_multimap
} // namespace qw
This is only useful, of course, in these cases when there mainly one class to implement inside the nested namespaces. In header files this would be confusing. So I guess the best solution would be to have a special comment or something.
#include <vector>
namespace qw {
namespace impl {
// -*- indent: 0 -*-
using std::vector;
...
Any other ideas would be ok, too.