slint-mode
This package contains a very simple major-mode for the Slint UI language, to enable editing Slint files with emacs.
To learn more about slint, visit https://slint.dev/.
Features
This mode is very limited at this point. Supported so far is:
- Syntax highlighting (aka font-lock)
- Indentation (configurable via
slint-indent-level
custom variable)
- Comment / uncomment region
- LSP integration using lsp-mode together with slint-lsp.
Screenshot
This is how the "Hello World" example from Slint looks like:
Prerequisites
- Emacs: I've tested this with GNU Emacs 28.2. ymmv. Please file an issue if you run into any problems.
- slint-lsp: The slint language server. Follow the link for installation instructions.
- (Optional) lsp-mode: LSP support for Emacs (alternative to built-in eglot). Can be installed via melpa.
slint-mode
should work with both lsp-mode
and eglot
.