Skip to content

sebastiw/erlang-ts-mode

Repository files navigation

Tree-sitter offers different features than emacs’ native parser. two things are required to activate it: 1. Install a Tree-sitter library for the required language. 2. A major mode that invokes the Tree-sitter backend.

Prerequisites

  • treesit (optionally built-in for Emacs 29+, i.e. needs to be compiled with --with-treesit)
  • treesit Erlang parser binary (i.e. .so-file from WhatsApp) (will be automatically installed if not already available; requires Git and a C/C++ compiler. See C-h f treesit-install-language-grammar[RET])

To run

/usr/bin/emacs -Q -L erlang-ts-mode/ -l erlang-ts-mode/erlang-ts-mode.el some/erlang/source.erl

About

Tree-sitter Erlang mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published