spacemacs/contrib/lang/typescript
2015-05-07 23:44:35 -04:00
..
img Add TypeScript configuration layer 2015-05-07 23:44:35 -04:00
packages.el Add TypeScript configuration layer 2015-05-07 23:44:35 -04:00
README.md Add TypeScript configuration layer 2015-05-07 23:44:35 -04:00

TypeScript contribution layer for Spacemacs

logo

Table of Contents

Description

This adds support for TypeScript editing via typescript-tools and emacs-tss.

These provide:

  • syntax coloring
  • error highlighting
  • autocompletion
  • jump-to-definition

Install

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(typescript))

Prerequisites

You'll need typescript-tools and fairly obviously also the TypeScript compiler:

$ npm install typescript
$ git clone git://github.com/clausreinke/typescript-tools.git
$ cd typescript-tools/
$ npm install -g

Key bindings

Key Binding Description
<SPC> m h Show popup help (with type info)
<SPC> m d Jump to definition
<SPC> m c f Flymake check (is done automatically on save)