title: How to use Emacs as terminal and for programming
body: <p>I'm currently using emacs and iTerm. iTerm is driving me crazy simply because I cannot edit the text, and I'm falling asleep while trying to move the cursor from one end of a long command to the middle.</p>
  
  <p>So, I would like to do terminal stuff with Emacs.</p>
  
  <p>However, I feel like sticking to a separation of "terminal-world" and "programming-world".</p>
  
  <p>I have a Mac OS command for switching to iTerm (from any window), which is what I would like to do in Emacs: from anywhere in the OS, press a key command and end up in a terminal in Emacs. </p>
  
  <p><code>C-w</code> in iTerm allows me to close a terminal, and <code>C-t</code> opens a new tab. Works well (though I thought how easy it will be in Emacs to just have something like "kill current terminal and spawn new one" in a single command). </p>
  
  <p>Note that switching between buffers is also easy in iTerm, no chance to switch to a "useless" buffer (for a terminal) such as <code>*scratch*</code> or <code>*messages*</code>. I find them useful in programming-world, though.</p>
  
  <p>Whenever I specifically go into Emacs, there my programming environment is ready.</p>
  
  <p>How can I get the best of both worlds? I.e. keep them both separated and easily accessible, or set Emacs up such that both can live in the same space without hassle?</p>