title: Functioning, up-to-date Emacs mode for TypeScript
body: <p>Is there a reasonably functional, up-to-date, Emacs mode for TypeScript? There doesn't seem to be an official one, or least an official one that is actively updated.</p>
  
  <p>There is a Microsoft one <a href="http://blogs.msdn.com/b/interoperability/archive/2012/10/01/sublime-text-vi-emacs-typescript-enabled.aspx">here</a>, but it is old and doesn't incorporate the latest language changes (e.g. <code>boolean</code> as a keyword in addition to <code>bool</code>). <a href="https://github.com/eugeneiiim/homedir/blob/master/emacs_stuff/typescript-mode.el">This one</a> looks similar, as does <a href="https://github.com/aki2o/emacs-tss/blob/master/typescript.el">this one</a> which claims to be more sophisticated.</p>
  
  <p>All suffer from the  following problem. In the example below, <code>borderRadius</code> is coloured differently from <code>borderWidth</code> and <code>fontSize</code>, presumably because the syntax colouring isn't coping properly with multiple variables introduced by a single <code>var</code> declaration.</p>
  
  <pre><code>var borderRadius: number = 4,
      borderWidth: number = 2,
      fontSize: number = 9;
  </code></pre>