This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/coffeescript/README.org
2018-10-11 00:13:43 +03:00

1.7 KiB

CoffeeScript layer

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

Description

This layer adds support for the 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 coffeescript to the existing dotspacemacs-configuration-layers list in this file.

Configuration

Linting

To enable linting, install CoffeeLint with the following command:

  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