title: Suppress c++ namespace indentation in emacs
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2619853/emacs-override-indentation">Emacs - override indentation</a>  </p>
  </blockquote>
  
  
  
  <p>What I want is for emacs to not indent the code inside a namespace</p>
  
  <pre><code>namespace a_namespace{
  
  // no indentation
  int namespace_global_variable;
  
  
  // no indentation
  class Class {
      // comment
      Class();
      //...
  };
  
  // and so on
  
  
  }
  </code></pre>
  
  <p>When I tried modifying the <code>innamespace</code> variable, or using <code>C-c C-o</code> to change the indentation at the point of interest, I do not get the desired effect (in fact the latter killed off all of the indentation inside of functions).</p>
  
  <p>My indentation configuration looks like this (copied from the Google emacs configuration):</p>
  
  <pre><code>(c-offsets-alist . ((arglist-intro vista-c-lineup-expression-plus-4)
                      (func-decl-cont . ++)
                      (member-init-intro . +)
                      (inher-intro . ++)
                      (comment-intro . 0)
                      (arglist-close . c-lineup-arglist)
                      (topmost-intro . 0)
                      (block-open . 0)
                      (inline-open . 0)
                      (substatement-open . 0)
                      (statement-cont
                       .
                       (,(when (fboundp 'c-no-indent-after-java-annotations)
                           'c-no-indent-after-java-annotations)
                        ,(when (fboundp 'c-lineup-assignments)
                           'c-lineup-assignments)
                        ++))
                      (label . /)
                      (case-label . +)
                      (statement-case-open . +)
                      (statement-case-intro . +) ; case w/o {
                      (access-label . /)
                      (innamespace . -))))
  </code></pre>