title: How to bind ESC to Quit (C-g) in emacs for Mac
body: <p>I'm using emacs 24.0.95 for Mac (from emacsformacosx.com builds).</p>
  
  <p>I've tried doing</p>
  
  <pre><code>(global-set-key (kbd "&lt;escape&gt;") 'keyboard-escape-quit)
  </code></pre>
  
  <p>as suggested in a similar (but win specific) question (http://stackoverflow.com/questions/648817/how-to-bind-esc-to-keyboard-escape-quit-in-emacs) which seems to work in Win but not on Mac, all meta keystrokes stop working.</p>