spacemacs/layers/+lang/pact
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
..
README.org Switch to the new layers generator 2019-05-15 21:08:21 +03:00
packages.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00

README.org

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