https://github.com/wkirschbaum/heex-ts-mode
Emacs Heex major mode using Treesitter for fontification, navigation and indentation
https://github.com/wkirschbaum/heex-ts-mode
elixir emacs tree-sitter
Last synced: about 16 hours ago
JSON representation
Emacs Heex major mode using Treesitter for fontification, navigation and indentation
- Host: GitHub
- URL: https://github.com/wkirschbaum/heex-ts-mode
- Owner: wkirschbaum
- License: gpl-3.0
- Created: 2023-01-02T21:18:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-11T06:43:34.000Z (9 months ago)
- Last Synced: 2025-05-11T07:29:35.200Z (9 months ago)
- Topics: elixir, emacs, tree-sitter
- Language: Emacs Lisp
- Homepage:
- Size: 55.7 KB
- Stars: 23
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HEEx Major Mode using tree-sitter
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://melpa.org/#/heex-ts-mode)

> [!NOTE]
> This package was a backport from Emacs 30.1 for the use with Emacs 29.1 and won't receive any additional updates.
Using [tree-sitter](https://tree-sitter.github.io/tree-sitter/) for font-lock, indentation, imenu and navigation.
This package is primarily to be used with [elixir-ts-mode](https://github.com/wkirschbaum/elixir-ts-mode) from where
you can find all the documentation and installation instructions.
This package is compatible with and was tested against the tree-sitter
grammar for HEEx found at https://github.com/phoenixframework/tree-sitter-heex.
## Installation
Emacs 29.1 or above with tree-sitter support is required.
Tree-sitter starter guide:
https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29
You can install the tree-sitter HEEx grammar by running: `M-x heex-ts-install-grammar`.
## Development
To test you can run `make test` which will download a batch script
from https://github.com/casouri/tree-sitter-module and compile
tree-sitter-heex.
Requirements:
- tree-sitter
- make
- gcc
- git
- curl
Please make sure you run `M-x byte-compile-file` against the updated
file(s) with an emacs version --without-tree-sitter to ensure it still
works for non tree-sitter users.