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
Copy file name to clipboardExpand all lines: README.md
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ highlighting), indentation, and navigation support for the
14
14
15
15
## Configuration
16
16
17
-
To see a list of available configuration options do M-x customize-group RET clojure-ts.
17
+
To see a list of available configuration options do `M-x customize-group <RET> clojure-ts`.
18
18
19
19
Most configuration changes will require reverting any active clojure-ts-mode buffers.
20
20
@@ -108,6 +108,12 @@ Once installed, evaluate clojure-ts-mode.el and you should be ready to go.
108
108
109
109
### Install libtree-sitter-clojure shared library
110
110
111
+
The tree-sitter clojure shared library must be available to Emacs.
112
+
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.
114
+
115
+
If clojure-ts-mode fails to automatically install the grammar, you have the option to install it manually.
116
+
111
117
#### From your OS
112
118
113
119
Some distributions may package the tree-sitter-clojure grammar in their package repositories.
@@ -116,18 +122,9 @@ If yours does you may be able to install tree-sitter-clojure with your system pa
116
122
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.
117
123
If this happens you should install the grammar manually with `M-x treesit-install-language-grammar <RET> clojure`.
118
124
119
-
#### Manually
120
-
121
-
The tree-sitter clojure shared library must be available to Emacs.
122
-
If you have `git` and a C compiler (`cc`) available on your system's `PATH`, **then these steps should not be necessary**.
123
-
clojure-ts-mode will install the grammar when you first open a Clojure file.
124
-
125
-
If clojure-ts-mode fails to automatically install the grammar, you have the option to install it manually.
126
-
127
-
The first way is to run `M-x treesit-install-language-grammar <RET> clojure` in Emacs.
128
-
This is what clojure-ts-mode attempts to do when a suitable grammar is not found.
125
+
#### Compile From Source
129
126
130
-
If that fails, you can attempt to download and compile manually.
127
+
If all else fails, you can attempt to download and compile manually.
131
128
All you need is `git` and a C compiler (GCC works well).
132
129
133
130
To start, clone [tree-sitter-clojure](https://github.com/sogaiu/tree-sitter-clojure).
0 commit comments