Commit Graph

4684 Commits

Author SHA1 Message Date
Henrik Lissner
5b9978c636 fix(gdscript): add interpreter-mode-alist entry
Upstream only adds this for gdscript-ts-mode?
2025-09-24 21:04:26 -04:00
Henrik Lissner
97854432ce feat(gdscript): add treesit support 2025-09-24 21:04:26 -04:00
Henrik Lissner
fbdde6b5f4 module!: add :editor whitespace
BREAKING CHANGE: Moves ws-butler, dtrt-indent, and whitespace defaults
out of Doom's core and into a new module. ws-butler is gated behind
+trim and dtrt-indent behind +guess. Users who depend on/like these
packages will need to enable the new module and their respective
flags (which is the default going forward).

This change is motivated by an ongoing effort to slim down Doom's
core (by (re)moving non-essentials from it).

This also addresses an issue where dtrt-indent would vastly increase
load times for some major-modes (e.g. elixir-mode & elm-mode, see #7537)
by restricting it to non-project files and non-read-only buffers AND
excludign those two major modes from indent guessing.

Fix: #8516
Fix: #7537
2025-09-24 02:23:30 -04:00
Henrik Lissner
22f86d25e9 fix(elixir): void-variable lsp-elixir-server-command
Amend: 4f62b503b9
2025-09-24 00:08:34 -04:00
Henrik Lissner
4f62b503b9 fix(elixir): use elixir-ls if in $PATH
And if the user hasn't themselves changed `lsp-elixir-server-command`.
2025-09-22 23:29:57 -04:00
XIE Huiwu
230f8999ab fix(php): tree-sitter indent rule should use cdar instead of cadr 2025-09-22 11:11:02 -04:00
Troy Brown
31c43cdceb fix(ada): use gpr-specific modes and indent properly
GNAT Project modes (`gpr-mode` and `gpr-ts-mode`) exist to handle .gpr files.
These modes are now used instead of the Ada major mode.

Lines may need to be re-indented when RET is pressed.  This is to handle cases
of incomplete syntax and ambiguity in what may be entered when an empty line is
initially indented.  Re-indenting after text has been entered corrects
incorrectly guessed initial indentation.  To accommodate this scenario, RET is
remapped to `reindent-then-newline-and-indent`.

Also updates documentation to reflect these changes.
2025-09-21 19:45:01 -04:00
Henrik Lissner
c48aa1851c fix(org): load +roam.el for +roam2
Was meant to be part of d92883b, for backwards compatibility with folks
still using the +roam2 flag.

Amend: d92883bff8
2025-09-20 14:39:02 -04:00
Henrik Lissner
2a65250743 refactor(org): +roam: remove org-roam-v2-ack
Was removed upstream.

Ref: org-roam/org-roam@2c5f429b24
2025-09-20 13:04:52 -04:00
Henrik Lissner
055788047c fix(sml): mirror sml-mode config to sml-ts-mode 2025-09-20 12:37:24 -04:00
Henrik Lissner
3c10db6824 fix(sml): company-mlton support in sml-ts-mode 2025-09-20 12:36:19 -04:00
Henrik Lissner
3f964df041 fix(org): +roam: revert org-roam-db-gc-threshold to default
It's high enough, increasing it this high may make it spiral in the
worst cases.

Fix: #7009
2025-09-20 02:57:54 -04:00
Henrik Lissner
d92883bff8 refactor!(org): remove org-roam v1
BREAKING CHANGE: This finally removes org-roam v1, which has been
deprecated for nearly 5 years (since 5ef733b). Most users should already
be on it. v2 has a migration wizard for anyone still on v1, which will
kick in if it detects a v1 roam db.
2025-09-20 02:51:30 -04:00
Henrik Lissner
849b1e4aa8 feat(org): org-roam-insert spacing in normal mode
Fix: #8513
2025-09-19 01:06:49 -04:00
Henrik Lissner
a9e08e15d7 fix(php): treesit: PSR-2 indentation for chained methods
Before:

    public function someMethod()
    {
        return $this->doSomething()
                   ->doSomethingElse()
                   ->andDoOneLastThing();
    }

After:

    public function someMethod()
    {
        return $this->doSomething()
            ->doSomethingElse()
            ->andDoOneLastThing();
    }

Fix: doomemacs/community#36
2025-09-18 22:47:53 -04:00
Henrik Lissner
9debe1b3fc bump: centered-window
anler/centered-window-mode@80965f6c6a -> emacsmirror/centered-window@80965f6c6a

anler/centered-window-mode has vanished, causing errors when installed
with ':lang (org +present)'.

Fix: #8512
2025-09-18 10:46:23 -04:00
Henrik Lissner
a72c865c35 tweak(org): don't configure ob-python
More recent versions of ob-python (Org 9.7+) calculates the python
command from `python-shell-interpreter` and
`python-shell-interpreter-args`, effectively rendering this block
(mostly) redundant. It still leaves
`org-babel-python-command-nonsession` to be changed, but I think I'll
leave that to users to set, for simplicity's sake.

What's more, users who repin Org to an older version (predating
bzg/org-mode@9239b0e8d1) will see void-variable errors for this new
variable.

Fix: #8509
2025-09-17 23:28:46 -04:00
Henrik Lissner
6eb467668e fix(org): update org-babel-python-command-nonsession
Ref: bzg/org-mode@9239b0e8d1
2025-09-17 10:45:14 -04:00
Henrik Lissner
a4526fd10d refactor(org): remove ob-ditaa fix
The scripts directory was removed from org-contrib back in Org 9.5. Now,
there is no way to resolve the "correct" location of these jar paths
without cloning the entirety of Worg, which is too heavy a dependency to
manage for an unmaintained package.
2025-09-17 10:40:55 -04:00
Henrik Lissner
6a630660ac fix(org): +jupyter: wrong-number-of-args error
Forgot to remove the extra argument when I converted this from an
:around advice to :before.

Fix: #8509
Amend: 979b3aa8c1
2025-09-17 10:16:53 -04:00
Henrik Lissner
7b35a31322 fix(org): +jupyter: syntax highlighting for remapped modes
Particularly treesit ts-modes.
2025-09-17 10:16:40 -04:00
Henrik Lissner
979b3aa8c1 refactor(org): +jupyter: loader & ob-async blacklist 2025-09-17 01:23:05 -04:00
Henrik Lissner
fd03386f6d fix(org): jupyter-org-interaction-mode: remove redundant hook 2025-09-17 01:23:02 -04:00
Henrik Lissner
95a375182b fix(python): remove 'basedpyright --stdio'
Seems 'basedpyright' doesn't support --stdio and
'basedpyright-langserver' is expected for this use case.

Fix: #8436
Amend: 5776adc6be
2025-09-15 19:29:22 -04:00
Tomek Wałkuski
4e22e681cd fix(ada): s/defaul/default/ 2025-09-15 09:10:51 -04:00
Henrik Lissner
5776adc6be fix(python): eglot not recognizing (based)?pyright
Because the upstream python entries in eglot-server-programs assume
basedpyright-langserver and pyright-langserver to be the executable
names.

Fix: #8436
2025-09-14 11:51:32 -04:00
Henrik Lissner
18eb710c34 refactor(python): remove mspyls config
mspyls is no longer maintained or used, so remove vestigial config for
it.
2025-09-14 11:28:42 -04:00
Henrik Lissner
986d344bda fix(ada): auoload.el -> autoload.el
Amend: 286f04c6ef
2025-09-14 10:37:31 -04:00
Henrik Lissner
a45f19f92b fix(cc): remove nil entries in major-mode-remap-defaults
Fix: #8499
2025-09-14 10:37:31 -04:00
Henrik Lissner
5a861608c8 fix(python): treesit: use v0.25.0 in >=30
Was released recently.

Ref: tree-sitter/tree-sitter-python@293fdc0203
2025-09-13 21:04:37 -04:00
Henrik Lissner
286f04c6ef module: add :lang ada 2025-09-13 18:05:52 -04:00
Henrik Lissner
9dbeafe212 tweak(org): move org-ctrl-c-minus to <localleader> -
Ref: doomemacs/community#32
2025-09-12 16:20:43 -04:00
Henrik Lissner
05137e14a5 fix(coq): corfu integration w/ company-coq
Close: #8491
Co-authored-by: qcfu-bu <qcfu-bu@users.noreply.github.com>
2025-09-11 23:37:14 -04:00
Henrik Lissner
6fcdb49225 fix(elixir): flycheck-credo, exunit in elixir-ts-mode
Close: #8505
Co-authored-by: prashantvithani <prashantvithani@users.noreply.github.com>
2025-09-11 23:36:24 -04:00
Henrik Lissner
d887b721da fix(clojure): keybinds in ts-modes
Ensures keybinds and cross-module config for the base clojure major
modes also apply to the treesit ts-modes.

Yes, we could take advantage of general.el's keymap deferral, but I
eventually want to drop general.

Fix: #8501
Close: #8502
Co-authored-by: goshatch <goshatch@users.noreply.github.com>
2025-09-11 14:08:38 -04:00
Henrik Lissner
a832076ca1 fix(python): treesit: use v0.23.6 on <=30
Newer versions of this grammar fails on Emacs <=30.

Fix: #8503
2025-09-11 13:40:30 -04:00
Henrik Lissner
8f55404781 fix(web): tree-sitter: html & css grammars' recipes
For both html and css grammars:
- Use 0.23.0 on Emacs 29 and 0.23.2 on 30+
- Remove :commit, because the latest commit is (essentially) 0.23.2 for
  both grammars.

Close: #8498
Co-authored-by: ispringle <ispringle@users.noreply.github.com>
2025-09-05 17:15:21 -04:00
Henrik Lissner
eb734f21e9 fix(cc): eglot support in cuda-ts-mode 2025-09-03 18:07:37 +02:00
Henrik Lissner
2542f7838f fix(php): php-ts-mode not activating
Because `php-mode` uses `php-mode-maybe` to delegate between
php-mode/web-mode, thus dodging any major mode remapping.

Fix: doomemacs/community/#27
2025-09-03 15:01:08 +02:00
Henrik Lissner
87e4eb0e33 fix(rust): rust-mode->rustic load order 2025-09-03 14:40:00 +02:00
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