This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/hy/README.org
Miciah Dashiel Butler Masters 78297be625 Fix various typos
* Fix various isolated typos

"apppend" -> "append"

"availabe" -> "available"

"Descripti using ternon" -> "Description"

"you have not them" -> "you don't have them"

"new on" -> "new one"

"plained" -> "curved"

"repel" -> "REPL"

"vairable" -> "variable"

* Fix a few errors in the CoffeeScript layer readme

Add a missing "the".

Correct a reference to the layer as "javascript" to "coffeescript".

Fix the syntax on the link to CoffeeLint.

* Fix typos: "dofile" -> "dotfile"

* Fix typos: "formated" and "formating"

"formated" -> "formatted"

"formating" -> "formatting"

* hy: Fix docstrings in funcs.el

Fix copy-and-pasted docstring text for
spacemacs/hy-shell-eval-current-form-and-go and
spacemacs/hy-shell-eval-region-and-go.

* Fix typos: "indendation" -> "indentation"

* Fix typos: "the the", "a a"

Fix duplicated (or misplaced) articles.

* Fix typos: "wether" -> "whether"

* Fix typos: "intialize" -> "initialize"
2018-05-23 22:12:30 -04:00

71 lines
2.6 KiB
Org Mode

#+TITLE: Hy layer
[[file:img/hy.png]]
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#features][Features:]]
- [[#install][Install]]
- [[#layer][Layer]]
- [[#key-bindings][Key Bindings]]
- [[#debug][Debug]]
- [[#repl][REPL]]
- [[#tests][Tests]]
* Description
This layer adds support for the Hy language based on Python.
** Features:
- syntax-highlighting
- Auto-completion
- Code Navigation
- Python test runners (see [[file:../python/README.org][python layer]])
- Virtual Environment using [[https://github.com/jorgenschaefer/pyvenv][pyvenv]] and [[https://github.com/yyuu/pyenv][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:
#+BEGIN_SRC sh
pip install hy
#+END_SRC
* Key Bindings
** Debug
| Key Binding | Description |
|-------------+---------------------|
| ~SPC m d d~ | insert pdb |
| ~SPC m d t~ | insert 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 Binding | Description |
|-------------+-----------------------------------------------------------------|
| ~SPC m s b~ | send buffer to the REPL |
| ~SPC m s B~ | send buffer to the REPL and switch to it |
| ~SPC m s c~ | send form containing current point to the REPL |
| ~SPC m s C~ | send form containing current point to the REPL and switch to it |
| ~SPC m s i~ | start and/or switch to REPL |
| ~SPC m s r~ | send current region to the REPL |
| ~SPC m s R~ | send current region to the REPL and switch to it |
| ~SPC m s s~ | start and/or swithc to REPL |
** Tests
| Key Binding | Description |
|-------------+------------------------------------------------------|
| ~SPC m t a~ | launch all tests of the project |
| ~SPC m t A~ | launch all tests of the project in debug mode |
| ~SPC m t m~ | launch all tests of the current module |
| ~SPC m t M~ | launch all tests of the current module in debug mode |