Commit Graph

20333 Commits

Author SHA1 Message Date
Henrik Lissner
1d1d17e9c9 fix(upload): +upload/register-remote: don't overwrite old values
...on consecutive uses.

Amend: b7d9c1801d
2025-09-26 00:21:56 -04:00
Henrik Lissner
ef94c82e03 fix(lua): treesit: use tree-sitter-lua@v0.3.0 on <= 29
Fix: #8531
2025-09-26 00:15:54 -04:00
Henrik Lissner
b793fb5642 tweak: do *not* download package archives by default
From this point on, Straight will *not* download packages from tarballs
by default. There are too many edge cases for this that catch up
beginners who have BSD tar installed and get undecipherable tar errors,
and Straight offers no fallback or easy way to change what tar
executable it uses.

Packages that have already been installed won't be affected until the
next time they are updated/reinstalled.

Users can still opt back into tarballs by adding this to
$DOOMDIR/packages.el:

  (setq straight-vc-use-snapshot-installation t)

Amend: 8cdddd87d9
Fix: #8530
2025-09-26 00:15:54 -04:00
Henrik Lissner
2acc9c50a0 nit(tramp): fix comment about ssh>scp (part 2)
Amend: 07d5cc8124
2025-09-26 00:15:54 -04:00
Henrik Lissner
722a8d3c7a refactor(default): move whitespace & tramp config
- tramp-default-method is already set in :emacs tramp.
- Moves the whitespace config to the new whitespace module.

Amend: fbdde6b5f4
Amend: 71eae252ac
2025-09-25 19:05:24 -04:00
Henrik Lissner
1a116f51a9 fix(upload): ensure ssh-deploy is loaded
The ssh-deploy-root-remote check isn't enough (they may be set file/dir
locally before the package is loaded).
2025-09-25 16:00:18 -04:00
Henrik Lissner
b7d9c1801d feat(upload): add commands for manual/temporary mappings
Close: #8529
Co-authored-by: stfl <stfl@users.noreply.github.com>
2025-09-25 15:55:29 -04:00
Henrik Lissner
db33b94cf1 feat(upload): activate ssh-deploy-line-mode
When the variables are set.
2025-09-25 15:54:58 -04:00
Henrik Lissner
7c425b8072 docs(upload): revise & clarify
Flesh out usage section and flesh out comments in config.el.
2025-09-25 15:53:45 -04:00
Henrik Lissner
07d5cc8124 nit(tramp): fix comment about ssh>scp 2025-09-25 03:30:12 -04:00
Henrik Lissner
0e784755eb fix(lib): void-variable type
When autodef'ing anything but functions.
2025-09-25 03:29:56 -04:00
Henrik Lissner
d6e1f25e77 tweak(lsp): eglot-code-action-indications: remove margin
Ref: doomemacs/community#37
2025-09-24 21:11:12 -04:00
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
Caramel Hooves
f782b0d021 fix(vertico): search for ripgrep on remote machine
When default-directory is is located on a remote host, we should search for "rg"
on the remote host. (executable-find) without the optional 't' will
search only on the local host.

Fix: #8525
2025-09-24 18:57:07 -04:00
Henrik Lissner
1b6b8c5fde fix(editorconfig): only set tab-width in old org-mode
Upstream now more aggressively ensures tab-width is 8, so this hook only
exists for users on older versions.

Ref: emacs-straight/org-mode@0dc647ff54
2025-09-24 14:26:14 -04:00
Henrik Lissner
395a058d7d feat(terraform): eglot: use tofu-ls if present
This should be upstreamed.

Ref: doomemacs/community#17
2025-09-24 14:04:53 -04:00
Henrik Lissner
e32f39f5e3 refactor: s/doom-projectile-cache-dir/doom-project-cache-dir/
Geenralize name of variable ahead of replacing projectile with
project.el.
2025-09-24 13:20:56 -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
7e711d53ca tweak(cli): only display the last, failed straight command
When displaying an package error.
2025-09-22 23:30:03 -04:00
Henrik Lissner
e297796387 fix(lsp): rebuild lsp-mode if lsp-use-plists is changed
...since the last time 'doom sync' was executed.
2025-09-22 23:30:03 -04:00
Henrik Lissner
87a7efcea6 fix(lib): package!: add :env property
Allows the association of arbitrary envvars or variables with the build
artifacts of a package. If they change, the package is rebuilt on the
next 'doom sync'. This is a temporary measure, which is why this is not
touted as a new feature. It will be replaced in v3.
2025-09-22 23:30:03 -04:00
Henrik Lissner
1bc2af6ce5 fix(lib): remove black hole insertions
These inserts were writing nowhere.
2025-09-22 23:30:03 -04:00
Henrik Lissner
093488fcb7 fix(lib): dependence on hash-table insertion order
Yes, yes. I did a stupid here. I depend on the order of a hash table,
and sure enough, that came back to bite me when that changed internally
in Emacs 29. In practice, this meant packages were getting
installed/rebuilt in reverse order, which, besides some odd output
during 'doom sync' for users on 29+, didn't pose any overt issues, but
may have caused strange, inexplicable byte-code warnings/errors.

But, rather than do the smart thing and *not* do this, I do the next
best thing: procrastinate! Because the solution is non-trivial (I don't
control the hash table in question) and this is precisely the sort of
technical debt I've fixed in v3, and I'd really, *really* rather beat my
head on that wall, rather than this one.
2025-09-22 23:30:03 -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
Henrik Lissner
4de162108e feat: retry straight operations if they fail
Prior to this, we had some rudimentary retry logic for failed git clones
resulting in an empty repo, but it didn't respond to other legit
errors (like connection errors or legit remote failures). This one does,
retrying in more contexts.

Close: #8523
Co-authored-by: NightMachinery <NightMachinery@users.noreply.github.com>
2025-09-22 23:25:04 -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
Henrik Lissner
fb9b359dbe bump: nerd-icons
rainstormstudio/nerd-icons.el@3774e0578b -> rainstormstudio/nerd-icons.el@4036893c42

Fix: #8517
Revert: 3436b2c3ba
2025-09-21 22:47:39 -04:00
Henrik Lissner
2b17ddc2cf docs(tramp): mention gdb-mi incompatibility
Ref: #8510
2025-09-21 22:47:39 -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
Troy Brown
fa6a2607b7 fix(lib): doom/sandbox: tree-sitter extra load path 2025-09-21 19:43:52 -04:00
Henrik Lissner
c27621a777 fix(evil): evil-respect-visual-line-mode: up/down/end/home keys
Fix: #7249
Ref: emacs-evil/evil#1971
2025-09-20 16:05:12 -04:00
Henrik Lissner
bdacdfa67c fix(format): register more ts-modes
While not strictly necessary (because apheleia uses
`provided-mode-derived-p` for its major mode tests), many *-ts-modes
didn't declare themselves children of their base modes until 30.1+.
2025-09-20 14:52: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
fffefc3118 fix(format): consolidate save-without-formatting keybind
It's too much hassle to claim either 'SPC b s' or 'SPC f s' for the
saving-without-formatting command (and to justify why one over the
other), so porque no los dos? Plus, I now leave 'C-x C-s' (save-buffer)
alone; principle of least surprise and what not.

Fix: #8460
Ref: https://xkcd.com/1172
2025-09-20 14:22:15 -04:00
Henrik Lissner
3436b2c3ba fix: nerd-icons: overeager gopher icon
Ref: rainstormstudio/nerd-icons.el#120
Fix: doomemacs/doomemacs#8517
2025-09-20 14:03:27 -04:00
Henrik Lissner
eacd1a030e fix(biblio): helm + org-cite-insert interop
Fix: #8462
2025-09-20 13:56:40 -04:00
Henrik Lissner
b43d748d67 fix(default): corfu-indexed-mode & RET interop
This whole RET/TAB/DEL system needs rethinking, but it'll have to wait.

Fix: #8120
2025-09-20 13:34:48 -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
6ea4332b85 docs(tramp): add hacks & minor revisions 2025-09-19 11:36:27 -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
ba18967855 module: move :core to :doom
These stubs snuck into 037b018, but were supposed to be in
lisp/modules/* anyway.

Amend: 037b018cdd
2025-09-18 22:48:07 -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
f3b4314dda docs(editorconfig): revise usage section 2025-09-18 00:24:21 -04:00