title: How do I bind a key to "the function represented by the following key sequence"?
body: <p>I'm just starting to learn emacs (woohoo!) and I've been mucking around in my <code>.emacs</code> quite happily. Unfortunately, I don't know Lisp yet, so I'm having issues with the basics.</p>
  
  <p>I've already remapped a few keys until I fix my muscle memory:</p>
  
  <pre><code>(global-set-key (kbd "&lt;f9&gt;") 'recompile)
  </code></pre>
  
  <p>That's fine. But how can I tell a key to 'simulate pressing several keys'? For instance, I don't know, make <code>&lt;f1&gt;</code> do the same as <code>C-u 2 C-x }</code> (widen buffer by two chars).</p>
  
  <p>One way is to look up that <code>C-x }</code> calls <code>shrink-window-horizontally</code>, and do some sort of lambda thing. This is of course the neat and elegant way (how do you do this?). But surely there's a way to define <code>&lt;f1&gt;</code> to send the keystrokes <code>C-u 2 C-x }</code>?</p>