1. Info

Avialable at: https://hg.bauherren.ovh/haskell-ts-mode/

This mode tries to be as much like cperl-mode as much possible, but insead of using search-based syntax highlighting, it uses a treesitter based parser.

2. Prerequisets

You need the correct grammers. Execute the following code to get setup.

(add-to-list 'treesit-language-source-alist
 '(perl . ("https://github.com/tree-sitter-perl/tree-sitter-perl" "release")))
(add-to-list 'treesit-language-source-alist
'(pod . ("https://github.com/tree-sitter-perl/tree-sitter-pod" "release")))
(treesit-install-language-grammar 'perl)
(treesit-install-language-grammar 'pod)

3. Usage

Should be pretty intutive, you use M-e and M-a to navigate around PODs.

This major mode alsp supports proper sexp based navigation. Extremly effective for making vim users feel jealous. It also does the statement-is-a-sentence thing similar to c-mode.

4. Issues

Right now there are some issues with perfomance and code embeded in regexps, but they are to do with the treesit-grammer and the emacs treesit.el.

Author: Pranshu Sharma

Created: 2025-01-19 Sun 21:46

Validate