Commit graph

582 commits

Author SHA1 Message Date
0e36272203 dev: merge branch 'master' 2024-08-19 22:19:37 -04:00
Henrik Lissner
9913acbdc4
fix: opening tramp paths from command line args
Eventually, Emacs will process any files passed to it via the command
line, and will do so *really* early in the startup process. These might
contain special file paths like TRAMP paths (e.g.
/sudo://etc/ssh/ssh_config), so restore `file-name-handler-alist' just
for this small portion of startup.
2024-08-18 16:12:42 -04:00
cf890a910e dev: merge from master 2024-08-18 15:04:05 -04:00
b6e9a6c5ff dev: merge branch 'master' 2024-08-17 10:19:08 -04:00
Henrik Lissner
1977b3dfba
refactor(lib): generalize ripgrep executables
Amend: 4fcf332749
2024-08-17 03:56:59 -04:00
Henrik Lissner
7499995643
fix: better-jumper evil integration (part 2)
Fix typo.

Amend: 916180a6bf
Fix: #7997
2024-08-16 13:27:40 -04:00
4cfb00a0e5 dev: merge branch 'master' 2024-08-16 10:23:12 -04:00
Henrik Lissner
1912571c9c
docs: minor revisions of docstrings across core+cli 2024-08-15 23:24:56 -04:00
Henrik Lissner
e8a444749a
refactor: use eval-when! less
These uses of this macro are a micro optimization that yield no benefit.
The only place it's useful is in autoloads (which are guaranteed to be
byte-compiled during `doom sync`).
2024-08-15 23:23:12 -04:00
Henrik Lissner
0f4328058c
fix: restrict find-function-search-for-symbol advice to Emacs 29
The issue this advice fixes are fixed at some point in 30.x.
2024-08-15 23:19:49 -04:00
Henrik Lissner
5e2e886b35
nit: comment revision & reformatting 2024-08-15 23:18:47 -04:00
Henrik Lissner
3a2c234b1c
fix(cli): don't AOT native-comp if disabled 2024-08-15 15:46:47 -04:00
Henrik Lissner
dc035a652f
fix: reset inhibit-* vars a mote more aggressively
There are still a few edge cases where inhibit-redisplay is never
reset (usually involving errors at startup), leaving Emacs as a blank
screen until the user performs an action that forces it to redraw (e.g.
pressing M-x). This tries to address more of those.
2024-08-15 15:45:53 -04:00
Henrik Lissner
916180a6bf
fix: better-jumper evil integration
Fix: #7997
Amend: ebf0e1ac30f9
Ref: gilbertw1/better-jumper#26
Ref: emacs-evil/evil@9cdd55bff8
2024-08-15 13:11:13 -04:00
34c3722f99 dev: merge from master 2024-08-14 09:21:46 -04:00
Henrik Lissner
95e0b43012
fix: "Malformed pattern in custom ignore file .project" error
I introduced '--ignore-file .project' to `projectile-git-fd-args` in
4fcf332  expecting fd to ignore the file if it didn't exist, but it
throws an error if it doesn't, causing it to throw these errors in any
project without a .project file.

Amend: 4fcf332749
2024-08-12 19:46:40 -04:00
237251f442 dev: merge from master 2024-08-11 16:20:19 -04:00
Henrik Lissner
f5020a4f7f
refactor: simplify projectile config
Reverts projectile-project-root-files-bottom-up to its original value,
since the absence of those VC entries may surprise folks who aren't new
to projectile.
2024-08-09 21:21:26 -04:00
Henrik Lissner
d04e1404c2
fix: projectile: ignore more vc directories in file listings 2024-08-09 21:03:46 -04:00
Henrik Lissner
4fcf332749
refactor: generalize fd/ripgrep vars & options
I intend to eventually replace projectile with project.el, so these
doom-projectile-* variables need to be generalized, starting with the
fd/ripgrep executable paths.

ALong with that, this refactors Doom's projectile-generic-command to
lean more on built-in fd support in projectile, where possible (fewer
wheels reinvented).

Ref: doomemacs/core#1
2024-08-09 21:03:37 -04:00
Henrik Lissner
939fc0d322
feat: add project-vc config
I intend to keep `project-vc-extra-root-markers` much lighter than what
`projectile-project-root-files` ended up being, so I won't be
transferring all the root markers.

Ref: doomemacs/core#1
2024-08-09 20:50:51 -04:00
5a73ae8157 dev: merge branch 'master' 2024-08-08 22:24:18 -04:00
Henrik Lissner
a6df88a56a
feat(lib): doom-org-docs-mode: bind q to kill-current-buffer
For consistency with other help modes.

Fix: #7985
2024-08-08 17:26:58 -04:00
Henrik Lissner
e3fdfee1c5
feat(cli): add --aot option
Allow ahead-of-time native-compilation during CLI operations that
install or update packages. This will not retroactively native-compile
already-installed packages, you'll need to use --rebuild to do so.

(This is a stop-gap solution until the v3.0 release)

Fix: #6811
2024-08-08 17:26:54 -04:00
58ad076f8f dev: merge from master 2024-08-07 08:58:01 -04:00
Ilya Gladyshev
2c17f71965
fix(cli): don't prompt to rebuild if --rebuild is given
When running `doom sync --rebuild` after emacs upgrade the user is
prompted with "Installed packages must be rebuilt. Do so now?", even
though doom was explicitly instructed to rebuild. This PR removes this
prompt when the `--rebuild` option is provided
2024-08-06 13:02:13 -04:00
53a3448c4f dev: merge branch 'master' 2024-08-01 10:19:30 -04:00
Henrik Lissner
cf7098528d
release(modules): 24.09.0-dev
Ref: 2b39e41368
2024-07-30 17:40:22 -04:00
Henrik Lissner
07f88f94ea
fix: improve startup error message
Showing `user-init-file` in the startup message seems more confusing
than helpful, especially to beginners, as it's not a file they can (or
should) be editing to fix whatever caused the error. Plus, its value
could be `t` if the error happens late enough in the startup process,
which is even less helpful.
2024-07-30 17:40:22 -04:00
3c71e058fd dev: merge branch 'master' of github.com:doomemacs 2024-07-29 10:14:47 -04:00
Henrik Lissner
b163c21fe5
fix(cli): --force: handle more straight prompts
Fix: #7906
2024-07-28 15:21:13 -04:00
d00f642a4c dev: merge branch 'master' of github.com:doomemacs 2024-07-26 16:12:59 -04:00
Henrik Lissner
54a084fed7
fix(cli): some package files not being byte-compiled
Fix: #7707
Ref: radian-software/straight.el#1132
2024-07-26 04:46:54 -04:00
Henrik Lissner
5852b2ecf5
fix(cli): properly overwrite last line of output
Before this, text that extended past the new line's length would
persist, causing garbled output like this:

  > Ensuring packages are installed and built...
    > Updating recipe repos...
    > Cloning org-appear...r emacsmirror-mirror...
    - No packages need attention

Which might lead you to believe org-appear is being cloned from
emacsmirror-mirror, but the full output is actually:

  > Ensuring packages are installed and built...
    > Updating recipe repos...
      > Updating recipes for melpa...
      > Updating recipes for nongnu-elpa...
      > Updating recipes for gnu-elpa-mirror...
      > Updating recipes for el-get...
      > Updating recipes for emacsmirror-mirror...
    > Cloning org-appear...
    - No packages need attention
2024-07-26 04:46:54 -04:00
a924e32652 dev: merge branch 'master' of github.com:doomemacs 2024-07-19 11:45:16 -04:00
Henrik Lissner
98a3cad54d
docs: minor docstring revisions
For clarity only. These do not reflect any recent changes.
2024-07-18 22:38:59 -04:00
9c0e95af1c dev: merging from main 2024-07-17 09:20:51 -04:00
Henrik Lissner
bd728fd2a8
fix(lib): doom-project-find-file: fall back to find-file if DIR is empty
Fix: #7949
2024-07-16 11:06:39 -04:00
Henrik Lissner
7543b04e15
feat(format): add +format/org-block-in-region
Also updates `+org/reformat-at-point` to call
`+format/org-block-in-region` if selection is active.

Fix: #7936
2024-07-14 01:57:20 -04:00
Henrik Lissner
378d0b8db6
fix(cli): doom env: omit XDG_BACKEND & DOOMLOCALDIR 2024-07-14 00:45:42 -04:00
Henrik Lissner
8ab42fa774
nit: revise site-lisp comments
The motivations for delaying the site-lisp files are different between
interactive and non-interactive sessions. I've revised these comments to
reflect that.
2024-07-13 19:38:16 -04:00
00c1bfdab3 dev: merge branch 'master' 2024-07-12 09:45:39 -04:00
Henrik Lissner
20ee90614a
nit(cli): revise comment over site-run-file loader
To better explain to the wondering reader why we're loading site-start
here.
2024-07-11 21:53:38 -04:00
Henrik Lissner
12dc195774
fix: kill-current-buffer: respect kill-buffer-query-functions
This advice is intended to fake the death of buffers that are visible in
other windows, and prevent Emacs from switching to a non-real buffer
after it's killed/buried. It shouldn't even try to do any of this if
`kill-buffer-query-functions` fails, even if it is a fake death.
2024-07-11 15:22:12 -04:00
Henrik Lissner
86517122bd
bump: :core
Fuco1/smartparens@f7cf316715 -> Fuco1/smartparens@ab475c7891
emacs-compat/compat@80dbd9bc5e -> emacs-compat/compat@09dce8a193
emacs-straight/project@bf4c3cfcfb -> emacs-straight/project@093f42a1b6
jscheid/dtrt-indent@939c5e374a -> jscheid/dtrt-indent@339755e4fb
justbur/emacs-which-key@ed38931217 -> justbur/emacs-which-key@38d4308d11

Fix: #7939
2024-07-11 14:19:54 -04:00
Henrik Lissner
a6ba70aed7
fix(lib): avoid writing customized faces to custom.el (take 4)
This time, the faces weren't being applied if THEME == 'user (for
`custom-set-faces!`).

Amend: afb9773d7c
Ref: #7929
Ref: #7933
2024-07-11 03:18:48 -04:00
Henrik Lissner
c2c241666b
fix(lib): autoload doom--run-customize-theme-hook
In case the user byte-compiles any files where custom-theme-set-faces!
is used.

Amend: afb9773d7c
Ref: #7929
Ref: #7933
2024-07-10 16:00:16 -04:00
Henrik Lissner
afb9773d7c
fix(lib): avoid writing customized faces to custom.el (take 3)
Wrap doom-customize-theme-hook and use that wrapper also when the local
doom--customize-themes-h-* hook is called immediately, otherwise
settings will be written to custom-file, which is what I've been trying
to avoid with all these takes!

Amend: 0b13525252
Ref: #7929
Close: #7933
Co-authored-by: real-or-random <real-or-random@users.noreply.github.com>
2024-07-10 15:57:35 -04:00
e9b11dc6f4 dev: merge branch 'master' into emenel 2024-07-10 10:33:50 -04:00
Henrik Lissner
0b13525252
fix(lib): avoid writing customized faces to custom.el (take 2)
Setting custom--inhibit-theme-enable to t isn't enough, since
custom--should-apply-setting will return non-nil if THEME is 'user.

Ref: #7929
Amend: 68771150ba
2024-07-10 04:22:48 -04:00