Commit graph

850 commits

Author SHA1 Message Date
Henrik Lissner
043000f2ca
fix: ensure auto-save file directory exists
Also don't create a tramp sub-directory, so we don't have to ensure two
directories.

Amend: 12e6027bda
2025-12-23 19:03:37 -05:00
Henrik Lissner
12e6027bda
tweak: improve recognizability of auto-save files
Make the resulting auto-save files easier to recognize when perused by
hand (in case of a fatal data loss and recovery situation), by prefixing
the hashed autosave file with the target file name.

Also updates the explanatory comment above it to better explain the
purpose of these defaults.

Also uses file-name-concat in case auto-save-list-file-prefix doesn't
end in a slash.
2025-12-23 02:51:37 -05:00
Henrik Lissner
ec0a558d18
fix: save files to profile cache/data dir
This doesn't actually change anything yet, unless you're using Doom's
profiles, but this data should be associated with and stored in the
current profile, rather than in the global store.
2025-12-23 02:51:26 -05:00
Henrik Lissner
05f2109345
docs: clarify Emacs version requirements 2025-12-18 02:45:42 -05:00
Henrik Lissner
8f31710bef
fix: remove doom-make-hashed-auto-save-file-name-a
This functionality was upstreamed to Emacs in 28, given the appropriate
`auto-save-file-name-transforms` rule whose UNIQUIFY argument names a
`secure-hash` algorithm (e.g. sha1), so we no longer need our cludge.

This also fixes an issue where TRAMP was saving its auto-save files to
the current working directory, rather than `tramp-auto-save-directory`.

Fix: doomemacs/community#53
2025-12-18 01:00:21 -05:00
Henrik Lissner
2657df70a3
nit: doom.el: revise comments 2025-12-17 02:17:33 -05:00
Henrik Lissner
2c682d60de
fix: don't save tramp auto-save files in CWD
Fix: doomemacs/community#53
Amend: 71eae252ac
2025-12-17 02:17:32 -05:00
Henrik Lissner
e69d417c5f
fix(cli): upgrade: don't 'doom sync' if aborted
There are some cases where the upgrade process will abort (due to
failure or user input), and it then runs `doom sync` anyway. Don't do
that.

Fix: #8595
2025-12-13 18:10:28 -05:00
Henrik Lissner
01b958ea35
fix(lib): print!: lost newlines in output
Some lines separated with a single newline were joined by
fill-paragraph.
2025-12-07 17:51:35 -05:00
Henrik Lissner
a3a98cee68
docs: doctor: generalize non-POSIX shell check
To detect *any* non-POSIX shell.
2025-12-07 17:51:35 -05:00
Henrik Lissner
6434987fb2
docs: doctor: add non-writable $TMPDIR check 2025-12-07 17:45:09 -05:00
Henrik Lissner
0ff018ffb4
bump: :doom
emacs-compat/compat@cccd41f549 -> emacs-compat/compat@ad6a2b82f7
emacs-straight/project@e8615777cb -> emacs-straight/project@83c91f5c84
radian-software/straight.el@e6d691d7c5 -> radian-software/straight.el@562639bd97
rainstormstudio/nerd-icons.el@4036893c42 -> rainstormstudio/nerd-icons.el@772987a28d
2025-12-01 01:14:54 -05:00
Henrik Lissner
c523ee9586
fix: set tramp backup/autosave dirs in core
In 71eae25, TRAMP settings were moved to a new :emacs tramp module,
reverting `tramp-backup-directory-alist` and `tramp-auto-save-directory`
to their Emacs defaults for anyone not using this module (which saves
those temp files in the current working directory, which is an
undesirable default), so we set them in core again.

Fix: doomemacs/community#53
Amend: 71eae252ac
2025-12-01 00:44:40 -05:00
Henrik Lissner
51ef02595a
release(modules): 26.01.0-dev
Ref: 2b39e41368
2025-12-01 00:44:40 -05:00
Henrik Lissner
d9e444bb22
fix: keep so-long out of special/temp buffers
Seems to be a new behavior on 30+ or 31+.
2025-11-04 22:18:18 -05:00
Tim Ruffing
f9664ae058 fix(cli): doom env: blacklist *_SOCKET 2025-10-16 04:19:51 -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
0e784755eb
fix(lib): void-variable type
When autodef'ing anything but functions.
2025-09-25 03:29:56 -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
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
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
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
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
Troy Brown
fa6a2607b7 fix(lib): doom/sandbox: tree-sitter extra load path 2025-09-21 19:43:52 -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
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
395a807aae
refactor(lib): move fringe/fontset autodefs to doom-compat 2025-09-17 01:23:45 -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
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
b82b95e98d
fix(cli): doom make: omit file path about output 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
Henrik Lissner
c4ec232206
refactor: vc-ignore-dir-regexp: move to :emacs vc 2025-09-14 23:24:30 -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
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
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
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
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
26a5ad72e1
fix(cli): autoloads: type error parsing autoloads
Prevent rare edge cases where FORM is an atom, causing `cadr` to throw a
type error. Might explain some cases of `doom sync` doing nothing after
'> Generating N init files...'.

Amend: c014950f6d
2025-09-03 23:15:57 +02:00
Henrik Lissner
c014950f6d
fix(cli): remove *-ts-mode {interpreter,auto}-mode-alist entries
While generating the autoloads for the current profile (at `doom sync`),
remove any `add-to-list` forms modifying `interpreter-mode-alist` or
`auto-mode-alist` in autoloaded `(when (treesit-available-p) ...)`
blocks. We want to fully rely on `major-mode-remap-defaults`.
2025-09-03 14:40:36 +02:00
Henrik Lissner
2443148f6d
bump: :doom
radian-software/straight.el@8b3a54b247 -> radian-software/straight.el@25e0206541
2025-09-02 00:31:09 +02:00
Henrik Lissner
2d28328b43
fix(cli): handle snapshot packages
Don't execute git commands in snapshots.

Amend: 8cdddd87d9
2025-09-02 00:31:08 +02:00
Henrik Lissner
09f104795d
release(modules): 25.10.0-dev
Ref: 2b39e41368
2025-09-01 22:01:54 +02:00