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/contrib/lang/lua/README.md

44 lines
1.1 KiB
Markdown
Raw Normal View History

2015-01-14 03:31:40 +00:00
# Lua contribution layer for Spacemacs
![logo](img/lua.gif)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [Lua contribution layer for Spacemacs](#lua-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Key Bindings](#key-bindings)
<!-- markdown-toc end -->
## Description
This layer adds support for editing Lua.
Features:
- Editing lua files using [lua-mode][]
- Sending code to a lua REPL
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
2015-02-18 03:36:12 +00:00
(setq-default dotspacemacs-configuration-layers '(lua))
2015-01-14 03:31:40 +00:00
```
## Key Bindings
### commands
Key Binding | Description
---------------------|------------------------------------------------------------
<kbd>SPC m d</kbd> | lookup thing at point in lua documentation
<kbd>SPC m s b</kbd> | send buffer contents to REPL
<kbd>SPC m s f</kbd> | send current function to REPL
<kbd>SPC m s l</kbd> | send current line to REPL
2015-01-15 03:00:17 +00:00
<kbd>SPC m s r</kbd> | send current region to REPL
2015-01-14 03:31:40 +00:00
[lua-mode]: https://github.com/immerrr/lua-mode