Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coalton-lang/coalton-mode

An Emacs major mode for Coalton.
https://github.com/coalton-lang/coalton-mode

coalton common-lisp emacs lisp

Last synced: 2 months ago
JSON representation

An Emacs major mode for Coalton.

Awesome Lists containing this project

README

        

This directory contains the source code for an Emacs mode that supports
working with Coalton code.

## Requirements

This mode requires Emacs version > 29.1 because it relies on
tree-sitter. You can check that your copy of Emacs was built with
support for tree sitter by evaluating:

(treesit-available-p)

## Installation

In your emacs init file (probably `~/.emacs.d/init.el` or `~/.emacs`),
add this directory to your load-path, and require the mode:

;; Coalton

(add-to-list 'load-path "~/git/coalton-mode")
(require 'coalton-mode)

## Usage

There is an example file, `types.coal` in the `test/` directory.

The first time you open a `.coal` file, Emacs will ask you to approve
the installation of a parser component:

tree-sitter-coalton is not installed. Clone, build and install it?

(Answer 'yes')