MistressRemilia / crystal-playground

Emacs mode to create a quick Crystal-lang app playground environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It works. But development still in progress!

GNU/Emacs mode that setup local playground for code snippets in the Crystal language. Heavily inspired by rust-playground.

Install

Install crystal-playground from MELPA:

Example screen after creation of a new snippet:

screenshot

Usage

Quick start

  1. From any mode run M-x crystal-playground for start a new playground buffer filled with basic template for the package with main function (see the picture below).
  2. Add your code then press C-x p r (it bound to crystal-playground-exec command). It will save, compile and exec the snippet code.
  3. When you played enough with this snippet just run C-x p k or M-x crystal-playground-rm. It will remove the current snippet with its directory and all files.

List of interactive functions

Function name Description
crystal-playground Create a new playground buffer with basic template for the package.
crystal-playground-exec Save, compile and run the code of the snippet.
crystal-playground-rm Remove the snippet with its directory with all files.

About

Emacs mode to create a quick Crystal-lang app playground environment.

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%