Emacs major mode for editing Lua
| Author | immerrr |
| Contact | immerrr+lua@gmail.com |
lua-mode is an Emacs major mode for editing Lua. The development has moved to github, so update your bookmarks if you still look for new releases at luaforge.
If you have a problem or a suggestion about lua-mode, please, let me know about it via issue tracker.
1. Grab a zipball1 or pick any commit you like on github:
2. Add the following to your init-file:
lua-mode.el is on your load-path (add-to-list 'load-path "/path/to/lua-mode")
lua-mode when visiting lua files automagically (autoload 'lua-mode "lua-mode" "Lua editing mode." t)
(add-to-list 'auto-mode-alist '("\\.lua$" . lua-mode))
(add-to-list 'interpreter-mode-alist '("lua" . lua-mode))
3. Byte-compile lua-mode if you like
Installing with el-get is as easy as
(el-get-install 'lua-mode)
lua-mode supports c-mode style formatting and sending of lines/regions/files to a Lua interpreter. An interpreter (see variable lua-default-application) will be started if you try to send some code and none is running. You can use the process-buffer (named after the application you chose) as if it were an interactive shell. See the documentation for comint.el for details.
Lua-mode also works with Hide Show minor mode (see hs-minor-mode).