title: create emacs alias that starts in background?
body: <p>I have an alias in bash that runs emacsclient if emacs daemon is already running and start emacs otherwise. However, in the event that a fresh instance of emacs is fired up, can I make it run in the background so I can still use that terminal (or close it)? In my bash profile, I have</p>
  
  <pre><code>alias ec="/usr/bin/emacsclient.emacs-snapshot -n -c -a /usr/bin/emacs-snapshot"
  </code></pre>
  
  <p>And I might be at the terminal and type</p>
  
  <pre><code>$ ec newfile
  </code></pre>
  
  <p>If emacs daemon is not already running, is there an alias I can create to make the line above do the equivalent of </p>
  
  <pre><code>$ emacs newfile &amp;
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>$ emacs newfile
  </code></pre>
  
  <p>(I should also mention that I am using Linux Ubuntu and emacs-snapshot is assigned to the alias, 'emacs').</p>
  
  <p>Thanks much!</p>