Is there a from-zero set of instructions to get Emacs going with julia-ts-mode?

Okay, you have two options:

  1. Install a C/C++ compiler and a linker such as mingw-w64. Then make sure that it’s on emacs variable exec-path (either inspect exec-path before installing, and install somewhere already on the path or add the location the compiler is installed to exec-path). After this, treesit-auto should automatically install the julia grammar when opening a julia file.
  2. Download an already-compiled grammar from a trusted source and manually install it. For example:
    1. Grab the appropriate asset for the most recent release of the tree_sitter_julia jll (probably x86_64-w64-mingw32).
    2. Extract the gzipped asset (may need to install something on windows to do this).
    3. Move libtreesitter_julia.dll from the bin directory of the extracted asset to .emac.d/tree-sitter
    4. Rename libtreesitter_julia.dll to libtree-sitter-julia.dll.
    5. Remove the treesit-auto use-package form from your init.el.
2 Likes