From 7bc2d77a56ab2945cbe7264be1e390fc0a0e8bd4 Mon Sep 17 00:00:00 2001 From: mkcode Date: Wed, 14 Jan 2015 14:31:40 +1100 Subject: [PATCH] Add lua configuration layer --- contrib/lang/lua/README.md | 45 +++++++++++++++++++++++++++++++++++ contrib/lang/lua/img/lua.gif | Bin 0 -> 9806 bytes contrib/lang/lua/packages.el | 21 ++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 contrib/lang/lua/README.md create mode 100644 contrib/lang/lua/img/lua.gif create mode 100644 contrib/lang/lua/packages.el diff --git a/contrib/lang/lua/README.md b/contrib/lang/lua/README.md new file mode 100644 index 000000000..07affb645 --- /dev/null +++ b/contrib/lang/lua/README.md @@ -0,0 +1,45 @@ +# Lua contribution layer for Spacemacs + +![logo](img/lua.gif) + + +**Table of Contents** + +- [Lua contribution layer for Spacemacs](#lua-contribution-layer-for-spacemacs) + - [Description](#description) + - [Install](#install) + - [Key Bindings](#key-bindings) + + + +## 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 +(setq-default dotspacemacs-configuration-layers '(lua) + "List of contribution to load." +) +``` + +## Key Bindings + +### commands + + Key Binding | Description +---------------------|------------------------------------------------------------ +SPC m d | lookup thing at point in lua documentation +SPC m s b | send buffer contents to REPL +SPC m s f | send current function to REPL +SPC m s r | send current region to REPL +SPC m s l | send current line to REPL + +[lua-mode]: https://github.com/immerrr/lua-mode diff --git a/contrib/lang/lua/img/lua.gif b/contrib/lang/lua/img/lua.gif new file mode 100644 index 0000000000000000000000000000000000000000..73f09bf8f08601d3b9400713853e1172ab680572 GIT binary patch literal 9806 zcmbW5cT`hL*Z)s)(g_fHhtNBQUe(Z>NN7?-4TN4J9Rv)$3IPErid3a)06{?1&_NM{ zBBG!oDn-x>RxJ1O!gJSC-ap>=SH3H2&gbmevu0+`o|QRcX>FmW>oo~X04u=X@&|xm z0EhyBTqraZ1kZ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