An Emacs major mode providing syntax highlighting, indentation, REPL integration, and tooling for editing Lua code.
lua-mode is an Emacs major mode for editing Lua source code. It provides syntax highlighting, automatic indentation, integration with a Lua REPL for code evaluation, and support for various Emacs tools like imenu and Flymake. It solves the problem of lacking a dedicated, feature-rich editing environment for Lua within the Emacs editor.
Lua developers who use Emacs as their primary text editor and need a specialized mode for writing, testing, and navigating Lua code efficiently.
Developers choose lua-mode because it offers a deeply integrated, customizable Lua editing experience within Emacs, including live REPL interaction and tooling support, which enhances productivity compared to generic editing modes.
Emacs major mode for editing Lua
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers accurate syntactic indentation and highlighting, including support for multiline literals and comments, as specified in the features list.
Enables direct interaction with a Lua REPL for evaluating lines, regions, functions, or entire files, facilitating immediate testing and debugging.
Seamlessly integrates with Emacs tools like imenu for navigation, HideShow for code folding, and Flymake for linting with luacheck, enhancing productivity.
Provides variables such as lua-indent-level and lua-documentation-url to tailor the editing experience, as detailed in the customization section.
Flymake integration requires the luacheck program to be installed separately, e.g., via luarocks, adding an extra setup step beyond Emacs configuration.
Installation involves Emacs package management or manual configuration of load-path and auto-mode-alist, which can be complex for newcomers to Emacs.
Default documentation URL points to Lua 5.1, which may not cover newer language features without manual updates to lua-documentation-url.