RDF Turtle Tree-sitter mode for Emacs

A simple tree-sitter major mode for RDF Turtle supporting Emacs >29.

Manual installation

See this walkthrough for how to setup Emacs with tree-sitter. You will need the Tree-sitter grammar for RDF Turtle:

(add-to-list 'treesit-language-source-alist '(turtle "https://github.com/GordianDziwis/tree-sitter-turtle"))

Then clone this repo somewhere in your Emacs load-path. I recommend creating a directory for your Emacs packages that are not managed by any package manager, and then adding all of its subdirectories to your load-path. Then all you have to do is git clone this package in this directory, and load it.

(let ((default-directory "~/.config/emacs/my-pkgs/"))
  (normal-top-level-add-subdirs-to-load-path))

(use-package turtle-ts-mode)