spacemacs/layers/+lang/typescript
2016-01-06 00:21:55 -05:00
..
img
packages.el layers: Transition to new key bindings functions 2015-11-21 18:22:51 +01:00
README.org Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00

TypeScript layer

/TakeV/spacemacs/media/commit/cddf18ff1e122fed233ac07d6e77c119260533f4/layers/+lang/typescript/img/TypeScript.png

Description

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

This layer provides:

  • syntax coloring
  • error highlighting
  • auto-completion via Flymake
  • jump-to-definition

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add typescript to the existing dotspacemacs-configuration-layers list in this file.

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 g g Jump to definition
SPC m h h Show popup help (with type info)