Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 2.57 KB

README.org

File metadata and controls

71 lines (57 loc) · 2.57 KB

Hy layer

img/hy.png

Table of Contents

Description

This layer adds support for the Hy language based on Python.

Features:

  • syntax-highlighting
  • Auto-completion
  • Code Navigation
  • Python test runners (see python layer)
  • Virtual Environment using pyvenv and pyenv
  • Org Babel support

Install

Layer

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

To install hy globally:

pip install hy

Key bindings

Debug

Key bindingDescription
SPC m d dinsert pdb
SPC m d tinsert pdb threaded

REPL

Start a Hy inferior REPL process with SPC m s i. If hy is available in system executable search paths, hy will be used to launch the shell. You may change your system executable search path by activating a virtual environment.

Send code to hy REPL commands:

Key bindingDescription
SPC m s bsend buffer to the REPL
SPC m s Bsend buffer to the REPL and switch to it
SPC m s csend form containing current point to the REPL
SPC m s Csend form containing current point to the REPL and switch to it
SPC m s istart and/or switch to REPL
SPC m s rsend current region to the REPL
SPC m s Rsend current region to the REPL and switch to it
SPC m s sstart and/or swithc to REPL

Tests

Key bindingDescription
SPC m t alaunch all tests of the project
SPC m t Alaunch all tests of the project in debug mode
SPC m t mlaunch all tests of the current module
SPC m t Mlaunch all tests of the current module in debug mode