title: Indent code in org-babel src blocks
body: <p>In an org-mode file, with code like the following:</p>
  
  <pre><code>#+begin_src emacs-lisp
  (add-to-list 'org-tab-before-tab-emulation-hook
               (lambda ()
                 (when (within-the-body-of-a-begin-src-block)
                   (indent-for-tab-command--as-if-in-lisp-mode))))
  #+end_src
  </code></pre>
  
  <p>I would like the TAB key to indent the code as it would if it were in a buffer in lisp mode.</p>
  
  <p>What I need is:</p>
  
  <ul>
  <li>A way to figure out whether the cursor is within a src block. It needs to not trigger when on the header line itself, as in that case the default org folding should take place.</li>
  <li>A way to indent the code according to the mode (emacs-lisp in this case) specified in the header.</li>
  </ul>
  
  <p>Org can already syntax highlight src blocks according to mode, and the TAB hooks are there. This looks do-able.</p>