clojure-ts-mode
clojure-ts-mode copied to clipboard
The next generation Clojure major mode for Emacs, powered by TreeSitter
See commit 177ac05434fa2aed037be05707ca57f63df59ef5 Bascically, as you type and hit treesit indent functionality tries to unindent everything back to 2 spaces, so it's hard to add nicer indentation inside docstrings. ```clojure...
I saw the [following bit](https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00209.html) in the emacs-devel archives: > > some files may consist of several parts requiring different tree-sitter > > grammars. For example, a JavaScript file may...
Libraries like https://github.com/gnl/ghostwheel have a macro `>defn` for defining functions, in one of my codebases i define `>defn` myself, but it's implemented with malli.experimental/defn There's no way to adjust clojure-ts-mode...
As a response to my article https://metaredux.com/posts/2023/03/12/clojure-mode-meets-tree-sitter.html someone asked if it'd be possible/easy to modify the tree-sitter grammar used by `clojure-ts-mode`. (e.g. teach the mode about some macros) I know...
I noticed a lot of the tree sitter repos have a dedicated queries folder, e.g. https://github.com/helix-editor/helix/tree/master/runtime/queries/julia Just a thought... makes it a bit more modular, and also is a possible...
Fixes an error where quoted functions would not align correctly with semantic indentation. Adds an example to the test sample. ----------------- Before submitting a PR mark the checkboxes for the...
For treesitter major modes, `show-paren-data-function` is set to `treesit-show-paren-data` by default. This function highlights the first and the last children of a `list` "thing", which is not always matching pairs....
## Expected behavior When standing at the beginning of a form that is the last one in the buffer and pressing `C-k` (which is bound to `paredit-kill` when Paredit is...
I've noticed that the sections on font-locking and indentation are missing in https://github.com/clojure-emacs/clojure-ts-mode/blob/main/doc/design.md#syntax-highlighting @rrudakov Would be interested in tacking this given all the recent work you've done on both fronts?...
In regular `clojure-mode`, calling the commands `up-list` and `backward-up-list` in a position without an enclosing form results in a no-op, raising a user error > At top level E.g. with...