Lua-mode

Emacs major mode for editing Lua


Project maintained by immerrr Hosted on GitHub Pages — Theme by mattgraham

Overview

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.

INSTALLATION

MANUAL INSTALLATION

1. Grab a zipball1 or pick any commit you like on github:

2. Add the following to your init-file:

    (add-to-list 'load-path "/path/to/lua-mode")
    (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

USING EL-GET

Installing with el-get is as easy as

    (el-get-install 'lua-mode)

USAGE

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).