title: Emacs, Auto Complete Mode, CSS, pain. (illustrated!)
body: <p>I've got <a href="http://cx4a.org/software/auto-complete/" rel="noreferrer">Auto Complete Mode</a> installed for Emacs. </p>
  
  <p><strong>First:</strong> When I'm typing declarations I get the normal auto-complete behavior:</p>
  
  <p><img src="https://i.imgur.com/VCWdx.png" alt="Hosted by imgur.com" /></p>
  
  <p>So I hit <kbd>Tab</kbd> to complete — no problem. But then I hit <kbd>;</kbd>:</p>
  
  <p><img src="https://i.imgur.com/iYuJR.png" alt="Hosted by imgur.com" /></p>
  
  <p>It instantly tries to complete something! And I can't hit <kbd>Enter</kbd> because that'll accept the erroneous completion!</p>
  
  <p><img src="https://i.imgur.com/9I0yw.png" alt="Hosted by imgur.com" /></p>
  
  <p>So I have to hit <kbd>C-j</kbd>. What a pain.</p>
  
  <p><strong>Second:</strong> Once I'm done with a declaration, I type <kbd>}</kbd>:</p>
  
  <p><img src="https://i.imgur.com/dTug8.png" alt="Hosted by imgur.com" /></p>
  
  <p>...but it doesn't get indented properly unless I type <kbd>Tab</kbd>.</p>
  
  <p>What gives?</p>
  
  <p><em>Update, settings:</em></p>
  
  <p>I'm using Emacs 23. My <code>css-electric-keys</code> are <code>}</code> and <code>;</code>. My Auto Complete configuration is as follows:</p>
  
  <pre><code>(ac-config-default)
  (setq ac-auto-start t)
  (setq ac-delay 0.1)
  (setq ac-auto-show-menu nil)
  (setq ac-show-menu-immediately-on-auto-complete t)
  (setq ac-trigger-key nil)
  </code></pre>