Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.96 KB

README.org

File metadata and controls

45 lines (36 loc) · 1.96 KB

SML layer

img/sml.png

Table of Contents

Description

Adds support for the SML programming language to Spacemacs.

Features:

  • Syntax highlighting
  • Integration of the SML Repl into emacs
  • Basic completion of SML forms via sml-electric-space

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add sml to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Form Completion

Key bindingDescription
M-SPCInserts a space and completes the form before the cursor.
\vert{}Inserts a pipe and adds a double arrow or copies the function name. Generally just works.

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 fSend function to REPL
SPC m s FSend function to REPL and switch to REPL buffer in insert state
SPC m s iRun the sml REPL or switch to it if the REPL is already running
SPC m s rSend region to REPL
SPC m s RSend region to REPL and switch to REPL buffer in insert state
SPC m s sRun the sml REPL or switch to it if the REPL is already running