title: How to launch GUI Emacs from command line in OSX?
body: <p>How do I launch GUI Emacs from the command line in OSX?</p>
  
  <p>I have downloaded and installed Emacs from <a href="http://emacsformacosx.com/">http://emacsformacosx.com/</a>.</p>
  
  <p>I'll accept an answer fulfilling all of the following criteria:</p>
  
  <ol>
  <li>The emacs window opens <em>in front of</em> my terminal window.</li>
  <li>Typing "emacs" launches a GUI Emacs window.  Finding files in that window will default to looking in the directory from where I started Emacs.</li>
  <li>Typing "emacs foo.txt" when foo.txt exists launches a GUI Emacs window with foo.txt loaded.</li>
  <li>Typing "emacs foo.txt" when foo.txt does <em>not</em> exist launches a GUI Emacs window with an empty text buffer named "foo.txt".  Doing ^X^S in that buffer will save foo.txt in the directory from where I started Emacs.</li>
  </ol>