Commit Graph

20194 Commits

Author SHA1 Message Date
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
7dcedc16b5 refactor(tree-sitter): major mode remapping
This approach simplifies the hacks and uses fewer moving parts to be
less error prone (or prone to potentially overwriting user/module
configuration).
2025-08-30 09:41:25 +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
Jonas Jelten
b1826a0c64 bump: :ui workspaces
Bad-ptr/persp-mode.el@f146ddccaf -> Bad-ptr/persp-mode.el@82680795b3

this fixes a nasty bug where new eglot workspaces corrupt the previous
one. symptoms of this can be your definition jump source buffer being
read-only and renamed to:
`*EGLOT (jump-destination-project/(your-lang-mode)) stderr*`
2025-08-30 00:49:00 +02:00
Jonas Jelten
7f8568ef31 refactor: remove workarounds for better-jumper
Ref: gilbertw1/better-jumper#2
Ref: gilbertw1/better-jumper#26
2025-08-30 00:49:00 +02:00
Henrik Lissner
3044812ac1 fix(clojure): remove vestiges of tree-sitter
Amend: 2adbdf1360
2025-08-29 18:23:18 +02:00
Jonas Jelten
e7a69dcdac feat(cli): ci/commit-msg: echo failed commit message
When you fail to provide a correct commit message, it may just become
lost without this adjustment.

(fun fact: this feature was used to fix its own commit message 4 times)
2025-08-29 17:59:35 +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
702d976665 docs(tree-sitter): document module hacks 2025-08-29 14:37:10 +02:00
Henrik Lissner
cd5dd5279e fix(tree-sitter): major mode remapping on first-load
Also refactors +tree-sitter--major-mode-remaps-alist to be lighter.
2025-08-29 14:35:49 +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
Stephen Brennan
ed27f91822 tweak(notmuch): include the user's name in From: header
The notmuch/compose function allows selecting between the email
addresses that the user has configured, but the email address is used
directly in the From header. Messages display much nicer in people's
inbox when the From contains a name in addition to an emeail address, so
construct the From header with the user's name as well as the chosen
email address.

Signed-off-by: Stephen Brennan <stephen@brennan.io>
2025-08-29 13:02:48 +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
64b4e565c3 refactor(tree-sitter): remove redundant grammars
Already registered by csharp and web module packages.

Amend: 5bf132a80f
Amend: c403bb5e2f
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
Henrik Lissner
bf85767975 refactor(graphviz): remove tree-sitter support
No *-ts-mode exists for graphviz-dot-mode. The graphviz module will fall
back to font-lock rules so this is not a breaking changing.
2025-08-27 17:29:58 +02:00
Henrik Lissner
3d2abf8b05 feat(erlang): add treesit support 2025-08-27 17:29:58 +02:00
Henrik Lissner
bee45157c6 refactor(elm): remove tree-sitter support
No *-ts-mode exists for elm-mode. The elm module will fall back to
font-lock rules so this is not a breaking changing.
2025-08-27 17:29:58 +02:00
Henrik Lissner
c1ac8bc37a refactor(ocaml): remove tree-sitter support
No *-ts-mode exists for tuareg-mode. There *is* a ocaml-ts-mode, but
it's too rudimentary. The ocaml module will fall back to font-lock rules
so this is not a breaking changing.
2025-08-27 17:29:28 +02:00
Henrik Lissner
47fe11cd76 feat(haskell): add treesit support 2025-08-27 17:29:14 +02:00
Henrik Lissner
086a0d30d0 feat(rust): add treesit support 2025-08-27 16:57:39 +02:00
Henrik Lissner
3b58741522 refactor(tree-sitter): centralize grammar config & hacks
Easier to track and maintain.
2025-08-27 16:57:28 +02:00
Henrik Lissner
058cb20a12 bump: :completion
LuigiPiucco/nerd-icons-corfu@55b17ee20a -> LuigiPiucco/nerd-icons-corfu@f821e953b1
bbatsov/helm-projectile@041076e35a -> bbatsov/helm-projectile@41bc1c1973
company-mode/company-mode@1924eabfa7 -> company-mode/company-mode@ca045bc544
emacs-helm/helm-descbinds@c12bc85ef3 -> emacs-helm/helm-descbinds@0aff44bada
emacs-helm/helm@90cd6ad68c -> emacs-helm/helm@c8d147be4d
minad/cape@c9191ee9e1 -> minad/cape@97641dcd1e
minad/consult-flycheck@8067363ee3 -> minad/consult-flycheck@398a85b5df
minad/consult@7146596b56 -> minad/consult@c8bbb3f1e2
minad/corfu@53aa6c85be -> minad/corfu@6b1ceef882
minad/marginalia@0e7097051c -> minad/marginalia@30e6813c81
minad/vertico@b43b594bb3 -> minad/vertico@718f8584d0
oantolin/embark@2941f2ea36 -> oantolin/embark@1371a1e33e
oantolin/orderless@254f241248 -> oantolin/orderless@31812d9252
radian-software/prescient.el@7dd5b53886 -> radian-software/prescient.el@87e2d2f2dd
rainstormstudio/nerd-icons-completion@e15e21a263 -> rainstormstudio/nerd-icons-completion@5625ef374d
seagle0128/nerd-icons-ivy-rich@83c7b60595 -> seagle0128/nerd-icons-ivy-rich@0cedc990e9
2025-08-27 16:30:47 +02:00
Henrik Lissner
4154ad885f revert: diff-hl
dgutov/diff-hl@39f076efa8 -> dgutov/diff-hl@0fe1bc0fd8

diff-hl introduced changes that require Emacs 31+ that can't be
trivially advised out or worked around. Until it's resolved upstream,
I've reverted diff-hl to one commit behind dgutov/diff-hl@7a89c85b89.

Fix: #8464
Ref: dgutov/diff-hl@7a89c85b89
Amend: a1121acc94
2025-08-27 15:42:25 +02:00
Henrik Lissner
6009c2b838 fix(tree-sitter): backport treesit-{enabled-modes,major-mode-remap-alist}
And ignore `treesit-major-mode-remap-alist`, because they could
interfere with our UX improvements.
2025-08-23 18:43:14 +02:00
Henrik Lissner
13ffb0fed3 refactor(org): remove +org-fix-newline-and-indent-in-src-blocks-a
Our rebinding of RET to +org/return in insert mode, already
accompolishes was this advice sets out to do.
2025-08-23 12:33:24 +02:00
Henrik Lissner
41876aa036 refactor(org): remove +org-fix-window-excursions-a
Changes upstream (to honour display-buffer-alist) seem to have addressed
what this advice was deployed for.

Ref: #6061
2025-08-23 12:31:11 +02:00
Henrik Lissner
5217ba75a2 refactor(org): remove +org--respect-org-auto-align-tags-a
`org-auto-align-tags` checks were added upstream in all editing
commands, so this advice is no longer needed.

Ref: emacs-straight/org-mode@aa71facf6d
2025-08-23 11:59:01 +02:00
Henrik Lissner
4bd6d3553a docs: update emacs version prereqs (30.1 -> 30.2) 2025-08-23 11:52:16 +02:00
Henrik Lissner
2129fffc79 bump: :lang beancount emacs-lisp markdown
Wilfred/elisp-def@1ad4baccbf -> Wilfred/elisp-def@2451ed6594
ardumont/markdown-toc@1b0c5ae7f3 -> ardumont/markdown-toc@e3429d3014
beancount/beancount-mode@ddd4b87257 -> beancount/beancount-mode@eb8b9b72a7
jorgenschaefer/emacs-buttercup@c467c659b2 -> jorgenschaefer/emacs-buttercup@cc5a2ab7c7
jrblevin/markdown-mode@90ad4af79a -> jrblevin/markdown-mode@d51c469133
seagle0128/grip-mode@96a927dce6 -> seagle0128/grip-mode@11fecd5b38
2025-08-21 16:47:37 +02:00
Henrik Lissner
cde7dbbb0f fix(lsp): eglot-booster-io-only only when needed
On older Emacsen, we want all the help eglot-booster can give.

Ref: #8463
Amend: 1ede94c88a
2025-08-21 16:47:37 +02:00
Henrik Lissner
79c8621091 fix(lsp): disable lsp-mode + emacs-lsp-booster advice
This is temporary until a better solution is found.

This advice does nothing for lsp-mode without the accompanying
`jsonrpc--json-read` advice eglot-booster uses. Needs more testing to
make sure it's worth the trouble on Emacs 30+ and is compatible with
`lsp-use-plists`.

Ref: #8463
Amend: 1ede94c88a
2025-08-21 16:46:37 +02:00
Henrik Lissner
c7d5ad622e docs(lsp): mention +booster
Ref: #8463
2025-08-21 16:33:33 +02:00
Henrik Lissner
c2da4f20f2 refactor(lsp): eglot-booster: conform to conventions
Ref: #8463
Amend: 1ede94c88a
2025-08-21 15:45:15 +02:00
Alejandro Blasco
52e867d386 refactor(corfu): use tty child frames in 31+
Since 31.1 child frames are now supported on TTY frames.
This supports use-cases like Posframe, Corfu, and child frames acting
like tooltips.
`corfu-terminal` package should be only loaded on older versions.

Ref: emacs-mirror/emacs@a8c83b496b
Ref: emacs-mirror/emacs@8aef5d224a
2025-08-21 15:13:44 +02:00
Daniel G Travieso
3ab397b520 bump: ob-restclient
alf/ob-restclient.el@8183f8af08 -> alf/ob-restclient.el@94dd9cd98f

newer `restclient` version (in use) sets to buffer to `view-mode`
ob-restclient works around this by exiting it manually

Fix: #8461
2025-08-21 14:50:27 +02:00
Sergei Nizovtsev
1ede94c88a feat(lsp): add +booster flag
Adds support for LSP IO performance booster. This may reduce UI-blocking
time in case of unresponsive LSP backend.
2025-08-21 14:46:55 +02:00
Henrik Lissner
751ac6134b fix(treemacs): persp-mode compatibility
The signature of `persp-activated-functions` changed upstream in
persp-mode (bumped in a1121ac), but treemacs hasn't updated its usage of
it yet.

Ref: #8454
Amend: a1121acc94
2025-08-11 02:27:38 +02:00
Henrik Lissner
10bfda2351 fix(eshell): +eshell-switch-workspace-fn: update signature
The signature of `persp-activated-functions` changed upstream in
persp-mode (bumped in a1121ac), causing arity errors when :term eshell
users switch workspaces.

Ref: #8454
Amend: a1121acc94
2025-08-11 01:36:52 +02:00
Henrik Lissner
c64ca09ed2 fix(workspaces): arity error creating workspaces
The signature of persp-window-state-get-function changed upstream in
persp-mode (bumped in a1121ac).

Fix: #8454
Amend: a1121acc94
2025-08-11 01:22:41 +02:00
Henrik Lissner
9a38ee2428 fix(format): prefix arg inhibiting format-on-save (part 2)
Experimenting with a new approach to this issue, in an effort to avoid
advice on such low level commands ({basic-,}save-buffer). I don't like
that we're still stacking new behavior on top of their pre-existing
prefix arg behavior (manipulating backup-on-save functionality), but
maybe it's not useful enough to worry about?

Fix: #8420
Amend: f0c8290ae2
2025-08-11 01:22:40 +02:00