Skip to content

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

License

Notifications You must be signed in to change notification settings

jasonrobot/crystal-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published