title: How do I run a command just after the emacs frame has been rendered?
body: <p>I'm trying to figure out how to use Emacs Code Browser (ECB) and one of the things you can do with it is set ecb-windows-width to decide how wide the ecb windows are. The problem is this sequence:</p>
  
  <ol>
  <li>Frame pops up on screen.</li>
  <li>ecb-activate gets called, scaled according to ecb-windows-width.</li>
  <li>default-frame-alist parameters kick in, frame gets resized.</li>
  </ol>
  
  <p>The problem is that due to this order the width of the ecb window is set before the frame gets resized, and then doesn't get scaled.</p>
  
  <p>So I'd like to run ecb-redraw-layout (or ideally just ecb-activate), but it has to happen after #3. Otherwise, some sort of ecb-dynamic-width-scale option would also work.</p>
  
  <p>For what it's worth, ecb-auto-activate doesn't work, so I can't find out if that would solve it.</p>