20262 Commits

Author SHA1 Message Date
Henrik Lissner
6a270b64d5 fix(direnv): void-variable Info-directory-list error
Ref: purcell/envrc#117
Amend: b72fe2bd37
2025-09-16 11:03:42 -04:00
Henrik Lissner
e87a92be75 tweak(magit): only preserve point if region-active-p
Only preserve cursor/window position on stage/unstaging/discarding/etc
hunks when region is active. Otherwise, it's fine not to.
2025-09-15 21:43:54 -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
Henrik Lissner
e10477d6d1 docs: revise & expand project prerequisites 2025-09-15 18:53:31 -04:00
Henrik Lissner
35d2934727 refactor(tree-sitter): dynamic-modules doctor check 2025-09-15 18:53:31 -04:00
Henrik Lissner
71ec9a9733 fix: backport treesit-available-p sooner
This fixes Doom for Emacs 27-28 users (or builds without treesit).
2025-09-15 18:53:31 -04:00
Henrik Lissner
64802ae654 nit(ligatures): packages.el: add missing comment header 2025-09-15 18:53:31 -04:00
Henrik Lissner
5cfaf59402 refactor(cli): doom make: accept functions in make targets
A little less magical (and more performant) than interpolation.
2025-09-15 18:53:31 -04:00
Henrik Lissner
15a0e90808 fix(lib): doom-rcfile-read: ensure $PWD is the rcfile's dir 2025-09-15 18:53:31 -04:00
Henrik Lissner
a8297a2565 dev: add LICENSE make target 2025-09-15 18:53:30 -04:00
Henrik Lissner
b82b95e98d fix(cli): doom make: omit file path about output 2025-09-15 18:53:30 -04:00
Henrik Lissner
f6e6ed82c5 dev: fix CODEOWNERS
Extra output at top.

Amend: bbf6398ff9
2025-09-15 18:53:30 -04:00
Henrik Lissner
39534b3d87 bump: :doom
emacs-straight/project@a0ebb2e9cf -> emacs-straight/project@e8615777cb
radian-software/straight.el@25e0206541 -> radian-software/straight.el@e6d691d7c5
rainstormstudio/nerd-icons.el@6868c05c6e -> rainstormstudio/nerd-icons.el@3774e0578b
2025-09-15 18:53:30 -04:00
Henrik Lissner
b72fe2bd37 feat(lib): profiles: more portable load-path/Info-directory-list
The Emacs appimage generates a new mountpoint on each invokation, but
Doom's profiles assume that the Emacs directories don't move. To make
Doom's profiles a little more profile, it will no longer set `load-path`
and simply add the new paths to the existing one. Same for
Info-directory-list.

Consequently, this also seems to speed up startup times for ~8% in my
tests. Neat.
2025-09-15 18:53:30 -04:00
Tomek Wałkuski
4e22e681cd fix(ada): s/defaul/default/ 2025-09-15 09:10:51 -04:00
Henrik Lissner
9429892d20 docs: revise packages.example.el 2025-09-14 23:26:40 -04:00
Henrik Lissner
c4ec232206 refactor: vc-ignore-dir-regexp: move to :emacs vc 2025-09-14 23:24:30 -04:00
Henrik Lissner
03e286feb4 docs(lsp): add demos.org
Picked up by the :lang emacs-lisp module's elisp-demos package when
displaying help.el/helpful documentation.
2025-09-14 23:17:31 -04:00
Henrik Lissner
71eae252ac module: add :emacs tramp 2025-09-14 21:25:04 -04:00
Henrik Lissner
0d41af1ef7 fix(cli): doom make: remove extra stdout output
Amend: 18403ab521
2025-09-14 21:04:39 -04:00
Henrik Lissner
2775cc75f9 fix(lsp): lsp-use-plists: ensure profile generator
Profile generators with the *.auto.el suffix are auto-deleted on every
'doom sync'. Also ensures it's deleted if lsp-mode is rebuilt with
lsp-use-plists disabled.

Amend: 5a9a2f4e18
2025-09-14 17:02:44 -04:00
Henrik Lissner
8df5d66ef7 bump: :tools
andras-simonyi/citeproc-el@f5217b9fdb -> andras-simonyi/citeproc-el@9f16f2eee4
editorconfig/editorconfig-emacs@f85ec9724b -> editorconfig/editorconfig-emacs@4af10445fc
emacs-straight/dape@81ee231de1 -> emacs-straight/dape@a2d7dc9a8d
karthink/gptel@40f6950e80 -> karthink/gptel@f66e44368f
purcell/envrc@48a2ee6a4d -> purcell/envrc@4fc7b657ea
2025-09-14 16:25:12 -04:00
Henrik Lissner
bbf6398ff9 dev: update CODEOWNERS 2025-09-14 16:25:12 -04:00
Henrik Lissner
18403ab521 refactor(cli): doom make
Redesigns the 'doom make' command and the CODEOWNERS rule in
.doom (which is now obeyed on 'doom make .github/CODEOWNERS').
2025-09-14 16:25:12 -04:00
Henrik Lissner
282e781a51 feat(lib): add doom-rcfile functions
For reading .doom, .doommodule, .doomsource, .doomprofile, and
.doomprofiles files.
2025-09-14 16:25:12 -04:00
Henrik Lissner
5a9a2f4e18 perf(lsp): lsp-use-plists = t
This will supposedly make lsp-mode more memory efficient. It will only
take effect the next time lsp-mode is rebuilt/reinstalled.

It can be undone with this added to $DOOMDIR/packages.el:

  (setq lsp-use-plists nil)
2025-09-14 16:16:40 -04:00
Henrik Lissner
84d5fa2b65 fix(lib): profiles: allow generators w/o an init function 2025-09-14 16:16:40 -04:00
Henrik Lissner
1e89556fa8 fix(lib): doom-file-read: (read . N) spec
Failed to read :by argument in '(read . ,N) form.
2025-09-14 11:52:29 -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
da5d22ad35 feat(lsp): set-eglot-client!: support fallback alternatives 2025-09-14 11:51:07 -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
69ecefa4d6 bump: :tools magit
magit/forge@a31859547a -> magit/forge@bbecd8947a
magit/ghub@97a07691ef -> magit/ghub@d76cdac69f
magit/magit@5b820a1d1e -> magit/magit@dc0094bd88
magit/transient@aa32e0d66c -> magit/transient@1d109f34b7

Fix: #8440
2025-09-14 11:20:55 -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
d6cdbb4d22 docs(tree-sitter): document treesit-font-lock-level
Close: #8487
2025-09-11 23:37:14 -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
Tim Ruffing
2395228ff8 fix: Run hooks only after switch-to-buffer for server
When a file is visited via `emacsclient`, server.el does the following
in this order:
 - create a buffer `b` visiting the file
 - run `(set-buffer b)`
 - trigger `server-visit-hook`
 - run `(switch-buffer b)`
 - trigger `server-switch-hook`

Thus, the right hook for `doom-run-switch-buffer-hooks-h` is
`server-switch-hook` because the "switch buffer" hooks may assume that
the buffer has already been switched to.

This fixes an org error that occurs when running

    emacsclient --create-file --no-wait foo.txt

while there's a frame containing an org-roam file. Without this commit,
the server will create a new frame and set the current buffer to
foo.txt. But the new frame will still display the (duplicated) window
for the org-roam file. Then `server-visit-hook` will be triggered and
eventually run `+org-roam-manage-backlinks-buffer-h`, which will try to
enable the org-roam backlinks buffer. But this will error because the
current buffer is not an org(-roam) buffer.

Amend: 4a6de2419c
2025-09-11 23:30:01 -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
ca641d9f8a fix(lispy,parinfer): add clojure-ts-mode support
Close: #8502
Co-authored-by: goshatch <goshatch@users.noreply.github.com>
2025-09-11 13:48:42 -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
30c95e6519 fix(lsp): +eglot: stay out of company
Fix: #8504
2025-09-11 13:38:51 -04:00
Henrik Lissner
84c197108e dev: update shell.nix 2025-09-10 23:18:42 -04:00
Henrik Lissner
c8d3d77b0b fix(cli): opt out of snapshots on Windows/BSD systems
At least until straight lets us customize the tar executable (or we add
a GNU tar check).
2025-09-09 23:45:30 -04:00
Henrik Lissner
1adec8b10c fix(tree-sitter): add derived-mode parents to ts-modes
ts-modes do this already in 30/31+ (`derived-mode-add-parents` was added
in 30), but is still needed for 29.x users and any ts-modes that haven't
adapted (many of them).

Fix: doomemacs/community#29
2025-09-07 10:58:45 -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
ddc447d9d5 tweak(tree-sitter): treesit-font-lock-level = 4
Fix: #8494
Close: #8487
2025-09-05 15:10:57 -04:00