spacemacs/layers/+lang/coffeescript
2018-05-13 10:28:39 -04:00
..
img New layer coffeescript (extracted from javacript layer) 2018-05-13 10:19:48 -04:00
config.el coffeescript: add jump handler 2018-05-13 10:28:39 -04:00
funcs.el New layer coffeescript (extracted from javacript layer) 2018-05-13 10:19:48 -04:00
layers.el New layer coffeescript (extracted from javacript layer) 2018-05-13 10:19:48 -04:00
packages.el New layer coffeescript (extracted from javacript layer) 2018-05-13 10:19:48 -04:00
README.org New layer coffeescript (extracted from javacript layer) 2018-05-13 10:19:48 -04:00

CoffeeScript layer

/TakeV/spacemacs/media/commit/e7c103b556b60d95dd3fe9d3a0e337c1a622833c/layers/+lang/coffeescript/img/coffee.png

Description

This layer adds support for CoffeeScript language using coffee-mode.

Features:

  • Syntax highlighting
  • Auto-completion with auto-completion layer
  • Syntax checking and linting with syntax-checking layer
  • Org-Babel integration
  • REPL support

Install

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

Configuration

Linting

To enable linting install [http://www.coffeelint.org/][CoffeeLint] with:

npm install -g coffeelint

Key Bindings

Key Binding Description
SPC m c c Compile buffer
SPC m c r Compile region
SPC m T c Toggle compile on save

REPL

Key Binding Description
SPC m ' Create or go to REPL
SPC m s b Send buffer to REPL
SPC m s i Create or go to REPL
SPC m s l Send line to REPL
SPC m s r send current region to the REPL and stay in buffer