spacemacs/layers/+lang/pact
2018-12-04 22:06:14 -05:00
..
packages.el pact: reference flycheck-pact as found on MELPA 2018-10-09 22:35:49 +01:00
README.org documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00

Pact layer

Description

This layer adds support for the Pact Smart Contract Language.

Features:

  • Syntax highlighting for .pact source files
  • Easy interaction with an embedded Pact REPL
  • Flycheck integration

Note: You will need a pact binary on your PATH for REPL features to function.

Install

Layer

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

Flycheck

To enable flycheck, add the following to your dotspacemacs/user-config:

  (add-hook 'pact-mode-hook 'flycheck-mode)

Key bindings

All Pact specific bindings are prefixed with the major-mode leader SPC m.

REPL

REPL commands are prefixed by SPC m s:

Key binding Description
SPC m s ' Open a Pact REPL in a new frame
SPC m s b Load or reload the current buffer into the REPL