Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bamboo/mjs-pack

Metascript pack for Emacs Live
https://github.com/bamboo/mjs-pack

Last synced: 10 days ago
JSON representation

Metascript pack for Emacs Live

Awesome Lists containing this project

README

        

## Metascript Live Pack

A hackable [Metascript](https://github.com/massimiliano-mantione/metascript) language mode packaged for [emacs-live](http://overtone.github.io/emacs-live).

![screenshot](mjs-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 mjs-repl: Launch a repl.

### mjs 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-M-x | Evaluate active region. Definitions become available in the repl.
C-c, | Run the tests.

### mjs test buffer

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

## Installation

git clone into your ~/.live-packs directory and add
```lisp
(live-add-packs '(~/.live-packs/mjs-pack))
```
to your ~/.emacs-live.el

## Configuration

M-x customize-group mjs-mode

Have fun!