Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bamboo/metascript-mode

Emacs major mode for the metascript programming language.
https://github.com/bamboo/metascript-mode

Last synced: 10 days ago
JSON representation

Emacs major mode for the metascript programming language.

Awesome Lists containing this project

README

        

## Metascript Mode [![Build Status](https://travis-ci.org/bamboo/metascript-mode.svg?branch=master)](https://travis-ci.org/bamboo/metascript-mode) [![MELPA](http://melpa.org/packages/metascript-mode-badge.svg)](http://melpa.org/#/metascript-mode)

A [Metascript](https://github.com/metascript/metascript) language mode for Emacs.

![screenshot](metascript-mode.png)

## Features

1. syntax highlighting with support for nice rendering of lambdas and other constructs
2. flymake integration for checking compilation errors as you type (requires [mjs-check](https://github.com/bamboo/mjs-check) as a dev dependency)
3. simple auto indentation
4. code evaluation and a repl
5. npm test integration with stack trace navigation

## Keyboard shortcuts

* M-x metascript-repl: Launch or activate the REPL.

### Metascript buffer

Keyboard shortcut | Description
-------------------------------|-------------------------------
C-M-f | Move to the next block.
C-M-b | Move to the previous block.
C-M-Space | Mark the next block.
C-c, | Run the tests.
C-c M-j | Launch or activate the REPL.
C-M-x | Evaluate active region. Definitions become available in the REPL.

### Test results buffer

Usual [compilation-minor-mode](https://www.gnu.org/software/emacs/manual/html_node/emacs/Compilation-Mode.html) shortcuts.

## Installation

Available from [MELPA](https://melpa.org).

```
M-x package-install metascript-mode
```

## Configuration

```
M-x customize-group metascript
```

Have fun!