title: Emacs C++-mode incorrect indentation?
body: <p>I'm running emacs 23 with c++-mode and having some indentation problems.
  Suppose I have this code:</p>
  
  <pre><code>void foo()
  {
     if (cond)
       { &lt;---
          int i;
          ...
       } &lt;---
  }
  </code></pre>
  
  <p>This seems to be the default behavior of the automatic indentation.
  However I'd like to change it so it'll be like this:</p>
  
  <pre><code>void foo()
  {
     if (cond)
     {
        int i;
        ...
     }
  }
  </code></pre>
  
  <p>Is there a way to do this easily by configuring c++ mode or my .emacs file?</p>