hare tree sitter mode for emacs
highlight "!"
argument_list indent
Add contributing section


browse  log 



You can also use your local clone with git send-email.

#Hare Tree-Sitter Mode

hare-ts-mode provides indentation and syntax highlighting for the Hare programming language

It requires emacs 29 and the tree-sitter grammar here: https://git.d2evs.net/~ecs/tree-sitter-hare

#Detailed installation instructions

We will start by installing the grammar.

First, add the tree-sitter grammar to your treesit-language-source-alist in your .emacs file.

If you don't already have grammars installed, add the following snippet to your .emacs file:

(setq treesit-language-source-alist
   '((hare https://git.d2evs.net/~ecs/tree-sitter-hare)))

Then install the grammar using M-x treesit-install-language-grammar RET hare.

#Installing hare-ts-mode

Clone the repo to a place in your load path and require it like usual.

Alternatively, you can install it anywhere on your computer, but you will need to specify the load path.

(require 'hare-ts-mode ~/.emacs.d/hare-ts-mode/hare-ts-mode.el)

You should now be able to use hare-ts-mode!


Patches can be sent either to the sr.ht mailing list: ~amk/public-inbox@lists.sr.ht or a pull request can be sent to the codeberg repository: codeberg.org/amk/hare-ts-mode