项目作者: kadena-io

项目描述 :
Emacs Major Mode for the Pact smart contract language.
高级语言: Emacs Lisp
项目地址: git://github.com/kadena-io/pact-mode.git
创建时间: 2016-11-18T01:01:01Z
项目社区:https://github.com/kadena-io/pact-mode

开源协议:

下载


Pact Mode for Emacs

This is an emacs mode for the smart contract language Pact.

Quick Installation

Install pact-mode from MELPA or clone this repo and add it to your load-path in your .emacs or init.el file, requiring pact-mode. Additionally, this mode has Flycheck linting support.

  1. (add-to-list 'load-path "~/[where you cloned it]/pact-mode/")
  2. (require 'pact-mode)

You’ll need a working Pact installation to use the inferior shell.
Prebuilt binaries are here
or you can build from source.

To enable flycheck-pact, you should add the following lines to your init.el or .emacs:

  1. (require 'pact-mode)
  2. (require 'flycheck-pact)
  3. (add-hook 'pact-mode-hook 'flycheck-mode)

Features

  • Syntax highlighting
  • Launch the pact interpreter from the ‘Lisp’ menu (“inferior lisp process”) or with C-c C-z
  • Load current buffer into inferior REPL with C-c C-l. With prefix (C-u C-c C-l) prompt for file to load.
  • Use semantic features under the Development menu, like “Navigate -> Find Tag Globally …”
    which finds any tag in any buffer you’ve opened.
  • Linting via flycheck supported with the flycheck-pact package