You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once installed, evaluate clojure-ts-mode.el and you should be ready to go.
108
108
109
-
### Install libtree-sitter-clojure shared library
109
+
### Install tree-sitter grammars
110
+
111
+
The compile tree-sitter clojure shared library must be available to Emacs.
112
+
Additionally, the tree-sitter [markdown_inline](https://github.com/MDeiml/tree-sitter-markdown) shared library will also be used for docstrings if available.
110
113
111
-
The tree-sitter clojure shared library must be available to Emacs.
112
114
If you have `git` and a C compiler (`cc`) available on your system's `PATH`, **then these steps should not be necessary**.
113
-
clojure-ts-mode will install the grammar when you first open a Clojure file.
115
+
clojure-ts-mode will install the grammars when you first open a Clojure file and
116
+
`clojure-ts-ensure-grammars` is set to `t` (the default).
114
117
115
118
If clojure-ts-mode fails to automatically install the grammar, you have the option to install it manually.
116
119
@@ -120,7 +123,9 @@ Some distributions may package the tree-sitter-clojure grammar in their package
120
123
If yours does you may be able to install tree-sitter-clojure with your system package manager.
121
124
122
125
If the version packaged by your OS is out of date, you may see errors in the `*Messages*` buffer or your clojure buffers will not have any syntax highlighting.
123
-
If this happens you should install the grammar manually with `M-x treesit-install-language-grammar <RET> clojure`.
126
+
127
+
If this happens you should install the grammar manually with `M-x treesit-install-language-grammar <RET> clojure` and follow the prompts.
128
+
Recommended values for these prompts can be seen in `clojure-ts-grammar-recipes`.
0 commit comments