Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 3.1 KB

README.org

File metadata and controls

74 lines (57 loc) · 3.1 KB

Racket layer

img/racket.png

Table of Contents

Description

Adds support for the Racket programming language.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add racket to the existing dotspacemacs-configuration-layers list in this file. You will also need DrRacket installed. Alternatively, one can use the “Minimal Racket” installation, and then run the following command.

raco pkg install drracket

Key Bindings

Navigation

Key BindingDescription
SPC m g `Return to previous location
SPC m g gGo to definition of symbol at point
SPC m g mGo to module at point
SPC m g rOpen require path

Documentation

Key BindingDescription
SPC m h dDescribes the function at point in a Racket Describe buffer
SPC m h hView documentation of the identifier or string at point.

Tests

Key BindingDescription
SPC m t bRun tests of buffer
SPC m t BRun tests of buffer with coverage

REPL

Key BindingDescription
SPC m s bSend buffer to REPL
SPC m s BSend buffer to REPL and switch to REPL buffer in insert state
SPC m s eSend last sexp to REPL
SPC m s ESend last sexp to REPL and switch to REPL in insert state
SPC m s fSend function at point to REPL
SPC m s FSend function at point and switch to REPL in insert state
SPC m s iStart a REPL or switch to REPL buffer
SPC m s rSend region to REPL
SPC m s RSend region to REPL and switch to REPL in insert state
SPC m s sShow and switch to REPL buffer

Other key bindings

Key BindingDescription
SPC m i lInsert lambda character
H-rRun current file and open REPL (H is hyper, may be bound to command on OSX)