Commit Graph

4644 Commits

Author SHA1 Message Date
Henrik Lissner
8d7bf44c72 bump: :lang
FStarLang/fstar-mode.el@3bbfe93abd -> FStarLang/fstar-mode.el@537c31983f
Fuco1/sphinx-mode@77ca51adf9 -> Fuco1/sphinx-mode@038a9195b0
OCamlPro/ocp-indent@f38578c25d -> OCamlPro/ocp-indent@1213857683
ProofGeneral/PG@af2e7b9a4e -> ProofGeneral/PG@fbb2878e49
ShuguangSun/ess-view-data@dd6a85935b -> ShuguangSun/ess-view-data@5ec1c7206f
abicky/nodejs-repl.el@130d49b073 -> abicky/nodejs-repl.el@c232b4964b
agda/agda@900bdaa335 -> agda/agda@5e31b2534d
ananthakumaran/exunit.el@8de56e3fd5 -> ananthakumaran/exunit.el@9a7cfc3d78
bricka/emacs-kotlin-ts-mode@a25d56ceca -> bricka/emacs-kotlin-ts-mode@051c9ef534
clojure-emacs/cider@12f10a6f4b -> clojure-emacs/cider@389833f85a
clojure-emacs/clj-refactor.el@dc1bbc8cda -> clojure-emacs/clj-refactor.el@362cb46bf8
clojure-emacs/clojure-mode@b766094aea -> clojure-emacs/clojure-mode@28dc02114a
clojure-emacs/clojure-ts-mode@da56a6938f -> clojure-emacs/clojure-ts-mode@32490c80fa
cpitclaudel/company-coq@5affe7a96a -> cpitclaudel/company-coq@78ed04ce39
diml/utop@3322adaa52 -> diml/utop@33201e6076
emacs-ess/ESS@d19efaae12 -> emacs-ess/ESS@8369d574f1
emacs-geiser/chicken@5f2c1bb446 -> emacs-geiser/chicken@8342bad8ce
emacs-geiser/geiser@c1c27072a4 -> emacs-geiser/geiser@c8b862f00e
emacs-lsp/emacs-ccls@5636ee6c50 -> emacs-lsp/emacs-ccls@34251b799e
emacs-lsp/lsp-haskell@081d5115ce -> emacs-lsp/lsp-haskell@aa9b5bce35
emacs-lsp/lsp-java@21c89243ad -> emacs-lsp/lsp-java@9230a0007c
emacs-lsp/lsp-pyright@73377169be -> emacs-lsp/lsp-pyright@0e59c00c7f
emacs-lsp/lsp-sourcekit@1fb230109e -> emacs-lsp/lsp-sourcekit@30918cd1ae
emacs-php/php-mode@462b62248f -> emacs-php/php-mode@40b8abed30
emacs-rustic/rustic@29f912c750 -> emacs-rustic/rustic@2b4ac5de3b
emacs-straight/auctex@f58a2b972b -> emacs-straight/auctex@a2809e4d70
emacs-straight/org-mode@4e6d38d1a6 -> emacs-straight/org-mode@8b15a0d0b4
emacsorphanage/dart-mode@f82ff05230 -> emacsorphanage/dart-mode@edb45cb709
emacsorphanage/htmlize@8e3841c837 -> emacsorphanage/htmlize@c9a8196a59
emacsorphanage/restclient@bba663590f -> emacsorphanage/restclient@ad97f666b6
erlang/otp@b9d3ec017d -> erlang/otp@2a970bf725
fosskers/sly-overlay@d629450590 -> fosskers/sly-overlay@345b554ad0
fsharp/emacs-fsharp-mode@8d08f05788 -> fsharp/emacs-fsharp-mode@91abae13e8
fuxialexander/org-pdftools@5613b7ae56 -> fuxialexander/org-pdftools@2b3357828a
fxbois/web-mode@be2d59c8fa -> fxbois/web-mode@1eb0abb1a9
godotengine/emacs-gdscript-mode@5136be407a -> godotengine/emacs-gdscript-mode@a0d25b46d8
greghendershott/racket-mode@c4cc7c160b -> greghendershott/racket-mode@172b7d4c5a
hakimel/reveal.js@eb95b14531 -> hakimel/reveal.js@4cf184924d
haskell/haskell-mode@e9c3567393 -> haskell/haskell-mode@e5d32021ea
idris-hackers/idris-mode@ccf32ed0b5 -> idris-hackers/idris-mode@da5c22f436
jart/disaster@8b44591322 -> jart/disaster@0299c129d4
joaotavora/sly@ce17a568ef -> joaotavora/sly@63131ef965
jschaf/powershell.el@9efa1b4d0a -> jschaf/powershell.el@99e0e73082
jwiegley/nix-update-el@77022ccd91 -> jwiegley/nix-update-el@d67f4f7ba8
kaushalmodi/ox-hugo@e3365cb4e6 -> kaushalmodi/ox-hugo@a907ea9514
ledger/ledger-mode@d9b6648201 -> ledger/ledger-mode@e9bb645e8f
magit/orgit-forge@050590fbc7 -> magit/orgit-forge@5a0dbe2601
magit/orgit@224350397d -> magit/orgit@8493c24808
minad/org-modern@1723689710 -> minad/org-modern@d5e1f5af65
necaris/conda.el@05de0c8f0c -> necaris/conda.el@8a1a934a2d
nex3/haml-mode@a64d58df8f -> nex3/haml-mode@3bb4a96535
nix-community/nix-ts-mode@62ce3a2dc3 -> nix-community/nix-ts-mode@e68ef36312
ocaml/dune@422986440e -> ocaml/dune@28b7e8f3b2
ocaml/merlin@e4c66857ad -> ocaml/merlin@8b88b89ee7
oer/org-re-reveal@da7e1feba9 -> oer/org-re-reveal@4eb0f71474
org-noter/org-noter@a28f61238a -> org-noter/org-noter@aafa08a49c
org-roam/org-roam@c172951345 -> org-roam/org-roam@89dfaef38b
polymode/polymode@74ba75d4bc -> polymode/polymode@25ba9463a4
pope/ob-go@2067ed55f4 -> pope/ob-go@c6c7c811fb
ppareit/graphviz-dot-mode@8ff793b137 -> ppareit/graphviz-dot-mode@2c7ba85d19
purescript-emacs/psc-ide-emacs@4e614df553 -> purescript-emacs/psc-ide-emacs@c64b05d901
purescript-emacs/purescript-mode@8c4736759a -> purescript-emacs/purescript-mode@61732e23bd
pythonic-emacs/pyenv-mode@ba1a8c7bd7 -> pythonic-emacs/pyenv-mode@364bddb8f0
rust-lang/rust-mode@25d91cff28 -> rust-lang/rust-mode@9915b3a585
salmanebah/opencl-mode@204d5d9e0f -> salmanebah/opencl-mode@6464abf969
shoshin/minitest-emacs@5999c45c04 -> shoshin/minitest-emacs@d278e94fb1
skuro/plantuml-mode@ea45a13707 -> skuro/plantuml-mode@348e83ff19
slim-template/emacs-slim@8c92169817 -> slim-template/emacs-slim@0b1b380329
sogaiu/janet-ts-mode@ac684edf57 -> sogaiu/janet-ts-mode@0e4d04d648
swift-emacs/swift-mode@e30b9d46e0 -> swift-emacs/swift-mode@fc7df7bd90
szermatt/emacs-bash-completion@d0637428fd -> szermatt/emacs-bash-completion@762f28fefb
technomancy/fennel-mode@df8e83d6e2 -> technomancy/fennel-mode@0d638f6133
tpapp/julia-repl@317d560218 -> tpapp/julia-repl@681efc14a7
wbolster/emacs-python-pytest@25d9801562 -> wbolster/emacs-python-pytest@ed2ecee09d
ziglang/zig-mode@c46d024733 -> ziglang/zig-mode@dab3c37c2d
zweifisch/ob-elixir@8990a8178b -> zweifisch/ob-elixir@8e5d2f3c7a
2025-09-02 16:16:03 +02:00
Henrik Lissner
f5c6c2a1bd fix(javascript): merge js-mode & js-ts-mode configs
They are both defined in the same package (named `js`).
2025-09-02 16:16:03 +02:00
Henrik Lissner
58e2e2d8f7 fix(javascript): treesit: use javascript@v0.23.0 & jsdoc@v0.23.2 on <=29
Newer versions of these grammars fail to load on Emacs <=29.
2025-09-02 16:16:03 +02:00
Henrik Lissner
08bde91cef fix(cc): treesit: use v0.23.6 c grammar on Emacs <=29
Newer versions of tree-sitter/tree-sitter-c fail to load on Emacs <=29.
2025-09-02 11:41:58 +02:00
Henrik Lissner
d01ff65299 fix(web): lsp init in {html,css}-ts-mode 2025-09-02 11:41:58 +02:00
Henrik Lissner
eb75f49c33 fix(php): void-variable +php--company-backends
Removed in 9e5e4cf, but was accidentally revived in d545fcc.

Amend: d545fccf47
Ref: 9e5e4cf78b
2025-09-02 11:41:57 +02:00
Henrik Lissner
75506f090f fix(go): treesit: use v0.20.0 on Emacs <=29
Newer versions of tree-sitter/tree-sitter-go fail to load on Emacs <=29.
2025-09-02 11:41:06 +02:00
Henrik Lissner
13e32dcbe9 fix(rust): treesit: use v0.23.2 on Emacs <=29
v0.24.0 errors out on <=29.

Fix: #8473
2025-09-02 03:28:40 +02:00
Henrik Lissner
076c03bf2e fix(csharp): treesit: use v0.20.0 on Emacs <=29
v0.20+ doesn't work on Emacs 29, spewing node query errors, so we use
v0.20 there instead (and the latest stable on 30, and cutting edge on
31+ where :commit is recognized and has precedence over :rev).
2025-09-01 21:58:21 +02:00
Henrik Lissner
a51690f033 fix(:lang): add treesit-available-p checks to *-ts-mode packages
Otherwise package installation will throw Emacs version errors for users
on 28 and under.
2025-09-01 20:11:02 +02:00
Henrik Lissner
84e8ae58d1 refactor(:lang): remove fboundp checks for *-ts-modes
The major-mode-remap advice will handle undefined modes, so all these
extra checks aren't needed.
2025-09-01 20:11:02 +02:00
Henrik Lissner
71f137c6b0 fix(:lang): remove vestigial rainbow-delimiters-mode hooks
rainbow-delimiters was removed in 87b616e, but some of its activation
hooks were restored in 3b58741 and not removed when merged into
`master`.

Fix: #8483
Ref: 87b616e5d8
Amend: 3b58741522
2025-09-01 20:10:48 +02:00
Henrik Lissner
8760979fb5 fix(javascript): tsx-ts-mode config & lsp activation
Because the `tsx-ts-mode` major mode is housed in the
`typescript-ts-mode` package (there is no `tsx-ts-mode` package).

Fix: #8478
2025-09-01 17:51:05 +02:00
Henrik Lissner
bb18611177 fix(clojure): lsp activation in *-ts-modes
Fix: #8478
2025-09-01 17:49:32 +02:00
Henrik Lissner
1ecee25553 fix(zig): treesit: use maxxnino/tree-sitter-zig grammar
tree-sitter/zig-tree-sitter is written in zig, so cannot be
automatically installed (`treesit-install-language-grammar` expects
C-based grammars).

Amend: 9acc5f48b6
2025-09-01 17:40:32 +02:00
Paweł Świątkowski
03c07970d4 fix(erlang): malformed treesit grammar recipe
Missed `:url` caused an error during initialization.
2025-09-01 17:31:20 +02:00
Igor Zinovyev
45d3997379 fix(php): return composer keybinds to localleader 2025-09-01 17:30:27 +02:00
Henrik Lissner
8cf2e42e42 nit(php): fix indentation
Some pesky tabs snuck in.

Amend: d545fccf47
2025-09-01 15:33:43 +02:00
Henrik Lissner
b85124af56 fix(javascript): defer js-ts-mode config
`+javascript-common-config` isn't intended to run until after the
`js-ts-mode` package is loaded, not before.

Amend: bd0bee92cc
2025-09-01 15:33:29 +02:00
Henrik Lissner
c6f768c114 fix(javascript): missing grammar recipe for tsx-ts-mode
Close: #8476
Co-authored-by: SunskyXH <SunskyXH@users.noreply.github.com>
2025-09-01 14:35:29 +02:00
Henrik Lissner
5ce2a29bf7 fix(rust): unify under rustic-mode
My mistake: I'd overlooked that rustic-mode already provides treesit
support, so we don't need all this complexity, we can simply use
rustic-mode. This indirectly fixes the recent regressions around
localleader keybinds and LSP activation.

Fix: #8473
Amend: 086a0d30d0
2025-09-01 14:35:29 +02:00
Henrik Lissner
4abdf07507 docs(javascript): add/revise docstrings 2025-08-31 18:40:40 +02:00
Henrik Lissner
247b630cbd refactor(javascript): remove vestigial tide/skewer functions
Amend: bd0bee92cc
2025-08-31 18:39:18 +02:00
Henrik Lissner
3e7a20f972 fix(:lang): project minor mode detection in ts-modes 2025-08-31 16:33:32 +02:00
Henrik Lissner
09c01e04e6 fix(javascript): vestigial npm-mode reference
npm-mode was removed in bd0bee9.

Amend: bd0bee92cc
2025-08-31 16:31:30 +02:00
Henrik Lissner
1dae2bf916 fix(tree-sitter): remap to ts-mode w/o base mode
If the base major mode doesn't exist, let's assume we want no
fallthrough for this major mode (in the event the grammar isn't ready)
and simply push forward anyway, even if a missing grammar results in a
broken state.

This will particularly affect major modes like `typescript-mode` (which
simply won't be installed if +tree-sitter is enabled) and
`go-{mod,work}-ts-mode` (for which no base major modes exist).

The difference (generally) between most base and ts-modes is
performance, not features, so "gracefully failing back to the base mode"
makes sense UX-wise, but `typescript-mode` notably inferior to
`typescript-ts-mode` (particularly in its TSX support). Beginners may
misidentify its shortcomings as bugs, so it's better to simply error out
early so the user can be made aware of the problem sooner and less
ambiguously.
2025-08-31 16:20:14 +02:00
Henrik Lissner
5cda3ed25a merge: branch 'feature/treesit'
Fix: #7742
Fix: #7623
Fix: #7593
2025-08-31 14:55:37 +02:00
Henrik Lissner
571766e6ba fix(qt): eglot support
Also refactor module out of autoload.el into config.el (now that it's
non-trivial).

Ref: doomemacs/community#24
2025-08-31 14:47:03 +02:00
Henrik Lissner
86b6ba81ac fix(go): go-{mod,work}-ts-mode 2025-08-31 14:40:58 +02:00
Henrik Lissner
d545fccf47 fix(:lang): missing grammar recipes
I removed the grammar recipes in 3b58741 to avoid redundancy with the
upstream recipes, but didn't realize that those upstream recipes weren't
added until Emacs 31, so users on 30 and older would get errors when
trying to install any missing grammars.

This also establishes a hard dependency between :lang (php +tree-sitter)
and :lang ({javascript,web} +tree-sitter).

Amend: 3b58741522
2025-08-31 14:39:38 +02:00
Henrik Lissner
83eba01bff refactor(python): string= first, then executable-find
The latter is a little slower depending on the order of $PATH.
2025-08-31 09:50:05 +02:00
Henrik Lissner
7dd66cc3d7 fix(php): remove unused async dependency
No longer needed without php-extras (removed in 9e5e4cf).

Amend: 9e5e4cf78b
2025-08-30 15:48:29 +02:00
Henrik Lissner
6084404a07 docs(beancount): flesh out module readme 2025-08-30 11:58:22 +02:00
Henrik Lissner
d77d39ab46 refactor(scala): remove redundant config
Amend: c5dd2847ff
2025-08-30 10:30:26 +02:00
Henrik Lissner
bcb2c56dd9 fix(haskell): haskell-ts-mode: repl & eglot integration
Amend: 47fe11cd76
2025-08-30 10:30:26 +02:00
Henrik Lissner
0ba85c8f77 refactor(lua): DRY tree-sitter config 2025-08-30 10:30:26 +02:00
Henrik Lissner
ab4dace692 refactor(:lang): remove redudant mode-alist lines
Amend: 3b58741522
2025-08-30 10:30:26 +02:00
Henrik Lissner
2870697e1a fix(go,nix,zig): dynamic keymap interpolation errors
Amend: 7c6e1950e8
Amend: 5b37bfee23
Amend: 9acc5f48b6
2025-08-30 10:30:21 +02:00
Henrik Lissner
9e5e4cf78b refactor!(php): remove php-extras
BREAKING CHANGE: The PHP API data file no longer exists on php.net, and
there is no substitute, and php-extras is no longer maintained, so this
package is defunct and leaves php buffers in an error state. This
deprives non-LSP users from eldoc and naive code completion. The
alternative is to simply adopt LSP.
2025-08-30 00:56:03 +02:00
Henrik Lissner
3044812ac1 fix(clojure): remove vestiges of tree-sitter
Amend: 2adbdf1360
2025-08-29 18:23:18 +02:00
Henrik Lissner
31f5b60f5e fix(php): dynamic mode map interpolation error
Amend: 9073b24878
Close: #8448
Co-authored-by: ribaricplusplus <ribaricplusplus@users.noreply.github.com>
2025-08-29 17:56:55 +02:00
Henrik Lissner
bd0bee92cc feat!(javascript): add treesit support
BREAKING CHANGE: This commit removes a number of core packages and
features from this module and only replaces a handful of them, so that
we can lean more on LSP and tree-sitter. To be specific:

- We used to rely on `rjsx-mode` (derived from js2-mode) for total
  JS/JSX support (though imperfect; Emacs was starved for options at the
  time). This has now been replaced with `js-ts-mode` (built-in after
  Emacs 29), falling back to `js-mode` (very rudimentary, but a decent
  fallback).
- This also meant the removal of `js2-mode`, which `skewer-mode`,
  `js2-refactor`, and `xref-js2` depended on, so those were removed
  too, and have *somewhat* been replaced with LSP integration (offers
  jump-to-definition/references and *some* refactoring actions, but no
  replacement for skewer's functionality).
- Typescript support no longer relies on the jury-rigged, web-mode-derived
  major mode (because TSX support in the upstream `typescript-mode`
  isn't great). We now use `typescript-ts-mode` (built-in into Emacs
  29.1+), falling back to `typescript-mode`.
- JSX/TSX support now *requires* tree-sitter (and Emacs 29.1+), where
  `tsx-ts-mode` is available and outshines all the alternatives (at the
  time of writing).

Due to the absolute chaos that is webdev, this module sacrifices some of
the graceful-degradation I've implemented for other modules and creates
a hard requirement on tree-sitter and Emacs 29.1+ for JSX/TSX. It still
tries to degrade gracefully for plain JS and TS, but the module's doctor
and docs will actively recommend tree-sitter.

Close: #5278
Fix: #6172
Fix: #7042
Close: #8447
Co-authored-by: ribaricplusplus <ribaricplusplus@users.noreply.github.com>
2025-08-29 14:35:49 +02:00
Henrik Lissner
d20c5f1273 docs(haskell): mention haskell-ts-mode package
Amend: 47fe11cd76
2025-08-28 14:32:08 +02:00
Henrik Lissner
f782b79797 feat(graphql): add treesit support 2025-08-28 14:32:08 +02:00
Henrik Lissner
93c085fa13 feat(qt): add treesit (and lsp) support 2025-08-28 14:32:08 +02:00
Henrik Lissner
cfadd8f6a4 feat(sml): add treesit (and lsp) support 2025-08-28 14:00:59 +02:00
Henrik Lissner
5bf132a80f feat(web): add treesit support (for html/css) 2025-08-27 17:38:40 +02:00
Henrik Lissner
6b203d74c9 refactor(sh): remove tree-sitter support
bash-ts-mode is inferior to shell-script-mode's syntax highlighting and
no other *-ts-mode modes are available for other shells (though,
there *are* powershell and nushell ts-modes; I'll investigate those
later).
2025-08-27 17:32:56 +02:00
Henrik Lissner
07e7c699cf feat(java): add treesit support 2025-08-27 17:29:58 +02:00
Henrik Lissner
6ca155ea11 refactor(ess): remove tree-sitter support
No *-ts-mode exists for ess-r-mode (or any other ess mode, afaik). The
ess module will fall back to font-lock rules so this is not a breaking
changing.
2025-08-27 17:29:58 +02:00