clojure-ts-mode
clojure-ts-mode copied to clipboard
The next generation Clojure major mode for Emacs, powered by TreeSitter
Towards fixing #42 Pushing this as WIP and to collect feedback from others if this is the right approach. - [x] don't indent a toplevel `def` with metadata - [x]...
This is valid Clojure code and is handled correctly in `clojure-mode`: ```clojure ^{:a 1} (def b 2) ``` ## Expected behavior To match the behavior of `clojure-mode` which is: -)...
As suggested in https://github.com/clojure-emacs/clojure-ts-mode/pull/39 - Useful when someone installs the package incorrectly. - It also helps to keep the same config across emacs distributions.
`(setq clojure-align-forms-automatically t)` in clojure-mode.el 'indents' ``` {:a 1 :bbbb 2} ``` to ``` {:a 1 :bbbb 2} ```
As pointed out in https://github.com/clojure-emacs/clojure-ts-mode/pull/27, some paths for the ["Compile From Source"](https://github.com/clojure-emacs/clojure-ts-mode/blob/8e61fe8ff4795975ec9e225af931d3a514c99445/README.md#compile-from-source) instructions are off for both Linux and macOS. For example, [for Linux I currently see](https://github.com/clojure-emacs/clojure-ts-mode/blob/8e61fe8ff4795975ec9e225af931d3a514c99445/README.md#linux): ``` mkdir -p...
`comment-add` is `1` in `clojure-mode` [1], whereas `clojure-ts-mode` does not set it in `clojure-ts-mode-variables`. This affects how many `;` are added when using `comment-region` (see the full explanation below). I...
Plumatic style function syntax `:-` can be found in a few libraries https://github.com/plumatic/schema#beyond-type-hints https://github.com/metosin/malli/blob/master/docs/function-schemas.md#function-schema-metadata https://github.com/gnl/ghostwheel is there any desire to support this out-of-the-box? it might be challenging to add an...
As discussed in https://github.com/clojure-emacs/cider/pull/3461, the https://github.com/clojure-emacs/clojure-mode/tree/master/test tests could be copied here, and then run in a CI matrix. Note that although clojure-mode uses circleci, I'd recommend GHA more, these days....
We should consider having a way to support the Jank dialect of Clojure Some interest is expressed here: https://github.com/jank-lang/jank/issues/24 I would propose a new derivative mode, something like `clojure-jank-ts-mode`. Jank...
Create an interactive function, called something like `clojure-ts-grammar-doctor` that checks the available clojure and markdown grammars for compatibility with the current queries we issue. This can be done by calling...