Commit Graph

19868 Commits

Author SHA1 Message Date
ad0eb9d5a2 bump: :emacs dired
alexluigit/dirvish@2d63995d32 -> alexluigit/dirvish@ecb7c42e20
2025-04-15 00:39:55 -04:00
def4579a9f fix: silence 'missing lexical-binding cookie' warnings
As of recent commits of Emacs 31, elisp files missing a
"lexical-binding: t" cookie will emit this warning:

  Warning (files): Missing ‘lexical-binding’ cookie in "path/to/elisp/file".
  You can add one with ‘M-x elisp-enable-lexical-binding RET’.
  See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’
  for more information.

You can look forward to many of these if you use any old and
unmaintained elisp packages, or if you have elisp shell scripts with
shebang lines (which make this warning unavoidable).

This commit silences these warnings because it's poorly implemented.
It's obnoxious to users and they aren't the ones that should be told
this. It ought to be emitted during byte-compilation or by linters (e.g.
`M-x checkdoc`) at the folks actually in a position to do something
about the warning (i.e. the developers).

Ref: https://lists.gnu.org/r/emacs-devel/2024-05/msg00283.html
2025-04-15 00:39:10 -04:00
976576853e nit(lib): doom-compat: make version comments consistent 2025-04-15 00:39:10 -04:00
a13719af45 refactor(lib): backport static-{if,when,unless}
And deprecate our eval-{if,when}! macros.
2025-04-15 00:39:10 -04:00
faea320162 tweak(default): swap 'C-c q q' & 'C-c q Q' keybinds
`C-c q q` should serve as a "soft" quit, with `C-c q Q` being a "hard"
quit.

This only affects non-evil users.

Fix: #8357
2025-04-15 00:37:51 -04:00
1a0fb88897 feat: doom-quit-p: use popup dialog if available
Mainly for Android UX, but also for consistency for folks who *like* GUI
dialog boxes (seek professional help).

Amend: 6a44a2ea80
2025-04-14 22:48:53 -04:00
6a44a2ea80 tweak: use GUI dialogs on android
It's better UX on touch screens, at least.
2025-04-14 15:01:03 -04:00
a45ce1e14d fix(magit): do less on magit-refresh-buffer
Inhibit recentf-cleanup and projectile caching, and silence it's logging
on refresh-buffer. The former can potentially be slow and isn't
necessary on top of invalidating the cache, and the latter is noise.
2025-04-13 06:52:24 -04:00
dddc01982b feat(emacs-lisp): add +emacs-lisp/change-working-buffer command
This changes what buffer `+emacs-lisp-eval` evaluates elisp in (useful
for the :tool eval module's commands, like `+eval/buffer` and
`+eval/region`, or the Evil operators on gr/gR).

Creates a scratch buffer/org src block alternative to ielm.
2025-04-13 06:30:07 -04:00
e096e7d79e feat(emacs-lisp): default ielm working buffer to selected
When invoking `+emacs-lisp/open-repl`, if no working buffer is set in
the resulting ielm buffer, it will default to the selected buffer prior
to opening the repl.
2025-04-13 04:32:46 -04:00
d209e519af fix(eshell): highlight syntax after completing from history
Fix: #6867
Co-authored-by: aikrahguzar <aikrahguzar@users.noreply.github.com>
2025-04-13 02:50:09 -04:00
5fdffe19db feat(eshell): add help command & lookup handler
Fix: #6867
Co-authored-by: aikrahguzar <aikrahguzar@users.noreply.github.com>
2025-04-13 02:50:09 -04:00
c7ca3ea8cc fix(eshell): don't error if command manpages has no SYNOPSIS
Fix: #6867
Ref: tom-tan/esh-help#7
2025-04-13 02:50:09 -04:00
6e92ca594f perf(magit): noop +magit-mark-stale-buffers-h if disabled
A little less work to do.
2025-04-13 02:50:09 -04:00
b2f8529683 fix(magit): projectile-invalidate-cache in wrong buffer
Also prevents projectile prompting in non-projects.
2025-04-13 02:50:09 -04:00
1c09989e48 fix(eshell): +eshell/search-history sometimes noops
Fix: #6867
Co-authored-by: aikrahguzar <aikrahguzar@users.noreply.github.com>
2025-04-13 02:50:07 -04:00
c6f749e67c fix(default): don't override TAB when Corfu isn't visible
Fixes TAB in many modes, like Org.
2025-04-11 15:49:41 -04:00
9a63789cf0 refactor(org): remove reference to org-superstar
org-superstar was removed in b1e6dec.

Amend: b1e6dec47a
2025-04-11 15:49:41 -04:00
dd493e48ed fix(format): wrong-type-argument listp error 2025-04-11 15:49:41 -04:00
7b5bcc00d4 perf(undo): tune undo limits
Store a little less undo history, to improve general runtime performance
by reducing the number of idle markers in long-lived sessions,
particularly in shell emulation buffers.
2025-04-11 15:49:07 -04:00
cbdce0dc71 refactor(cli): doctor: extract symlink check to function 2025-04-11 12:17:48 -04:00
fb0dc4cc85 refactor(lib): doom-debug-mode: make verbosity selective
Now `doom-debug-mode` manipulates `doom-log-level` if you activate it
with a prefix arg, setting it to 1 by default, reducing its verbosity
and cutting down on noise in the logs.
2025-04-11 12:17:44 -04:00
c233aada0b fix(format): void-variable callback when formatting w/ lsp-mode
Ref: #8182
2025-04-10 19:12:51 -04:00
0150f879ea feat(magit): introduce +magit-auto-revert option
Provides more control over our auto-reverting feature, and changes its
behavior to only target non-remote buffers by default, because reverting
remote buffers could be tremendously slow.

This could be later improved to treat TRAMP buffers with local
methods (like sudo) as local buffers.

Fix: #8354
2025-04-10 18:34:49 -04:00
ae2cdd1c91 refactor(cc): configure clang-format in :editor format
These should be upstreamed.
2025-04-09 18:20:36 -04:00
9a525ea030 bump: :doom
bbatsov/projectile@55db082cdf -> bbatsov/projectile@4dd84b02c9
emacs-compat/compat@c89bba6524 -> emacs-compat/compat@7179960b7c
emacs-straight/project@d193442fca -> emacs-straight/project@369ac661c8
jscheid/dtrt-indent@22498ca24a -> jscheid/dtrt-indent@015b26d6d6
radian-software/straight.el@483b205efb -> radian-software/straight.el@d157afbec4
rainstormstudio/nerd-icons.el@6612cc6537 -> rainstormstudio/nerd-icons.el@14f7278dd7
2025-04-09 17:35:04 -04:00
af908b1bd0 fix(vterm): always set +vterm--id in +vterm/toggle
Previously +vterm/toggle would only set +vterm--id if the vterm popup
window already existed.
2025-04-09 16:13:17 -04:00
42fba948f6 fix(magit): use messages instead of modeline 2025-04-09 16:12:18 -04:00
fda6bd4a44 fix(bidi): set the font for Arabic characters
In function `+bidi--set-font`, the character set was incorrectly
hardcoded to `'hebrew` instead of using the provided character set `name`
parameter. This caused `+bidi-arabic-font` to have no effect when set.

Additionally, setting the scale throws an error:

```
string-match-p: Wrong type argument: stringp, DejaVu\ Sans
```

Converting the font family property to string fixed the issue.
2025-04-09 16:11:55 -04:00
eae2529ed8 fix(popup): ensure hooks run in popup buffer/window
Ref: 13b64229a0
2025-04-09 15:59:47 -04:00
a39a5c24af refactor(python): remove local conda.el fix
These were upstreamed.

Ref: necaris/conda.el@3c6d3c2022
Revert: 8f60a1bc46
Amend: b126c3857d
2025-04-08 18:14:10 -04:00
b7f4d31218 fix(dired): dirvish: "window is dedicated to *dirvish-parent-...*"
Seems the naming convention of dirvish windows has changed at some
point, so the popup module's fallback rules were catching them, causing
each of Dirvish's side windows to be treated as implicit popups.

Fix: #8347
2025-04-08 18:13:27 -04:00
310d0e3a5a fix(evil): clear modeline search highlights on zero matches
Prevent anzu-mode's zero-match state from persisting in the modeline
on doom/escape invocations
2025-04-08 18:13:15 -04:00
13b64229a0 fix(popup): fringe/margins adjusted in wrong window
Due to a race condition in some contexts, hooks that adjusted window
fringes or margins weren't targeting the windows (usually popups) they
were supposed to, often affecting the last selected window instead. This
could cause the fringes (or margins) to resize or outright vanish
unexpectedly in the wrong windows (e.g. after opening or killing a vterm
or eshell popup).

Fix: #8346
2025-04-07 13:59:30 -04:00
d660853fc3 tweak(org): org-modern: oversized checkbox symbol 2025-04-07 13:59:28 -04:00
13500dd175 fix(org): org-modern: s/keyword/keywordp
Amend: 8168a03599
2025-04-07 02:51:11 -04:00
b840f90252 revert: fix(latex): run after-compilation-finished hook after Tex-Tex-sentinel
This hack is no longer necessary; it was addressed upstream.

Revert: 79684ade71
Ref: emacsmirror/auctex@650d0f3297
Ref: #8051
2025-04-06 18:36:50 -04:00
3a8e9a165f fix(vc-gutter): diff-hl-update suppression
Amend: 98273b639b
2025-04-06 16:19:36 -04:00
c3d4970da5 fix(org): do not rely on org-indent being loaded
Amend: 9dfcb5401f
2025-04-06 15:33:09 -04:00
20ad20f8eb fix(syntax): +syntax--only-check-elisp-buffers-in-projects-a signature
The previous signature was accidentally compatible with
`elisp-flymake-byte-compile`, so there was no error, but still.
2025-04-06 15:32:22 -04:00
a70ce220c0 refactor(org): use variables instead of +org-pretty-mode
Toggling +org-pretty-mode on startup is much slower (because
`org-toggle-pretty-entites` and realigning tables can be expensive in
larger Org buffers), so rely on the variables instead.
2025-04-06 15:32:22 -04:00
32fc210bf6 fix(org): org-modern in org-agenda
Amend: b1e6dec47a
Ref: #6434
2025-04-06 15:32:22 -04:00
90b64a0313 refactor(latex): replace latex-preview-pane w/ auctex-cont-latexmk
Since latex-preview-pane is unmaintained, replace it with auctex-cont-latexmk.el
and a simple function to compile the document and open the default viewer.

Close: #3128
Close: #5249
2025-04-06 00:04:39 -04:00
35e348ea20 bump: :lang org
doomelpa/org-contacts@f0a430442b -> doomelpa/org-contacts@b06a597368
emacs-jupyter/jupyter@db8a9e233a -> emacs-jupyter/jupyter@3615c2de16
emacs-straight/org-mode@07e380f76d87[release_9.7.26] ->
emacs-straight/org-mode@74dde3abae74[release_9.7.27]
hakimel/reveal.js@5c77e86301 -> hakimel/reveal.js@dfc5690c6d
magit/orgit-forge@2718a6aaf0 -> magit/orgit-forge@764820769e
magit/orgit@6ad0dc35c8 -> magit/orgit@efd98e5caa
msnoigrs/ox-rst@99fa790da5 -> msnoigrs/ox-rst@b4ba5c7e95
2025-04-05 17:03:30 -04:00
98e37b9cea tweak(org): org-priority-faces: use shadow face for #C
Defaulting to green for the lowest priority indicators seemed
inappropriate, so use a more washed out face.
2025-04-05 16:56:36 -04:00
8168a03599 fix(org): org-modern: respect defaults for org-*-faces
Makes org-modern respect Doom's defaults out-of-the-box.

Amend: b1e6dec47a
2025-04-05 16:54:38 -04:00
26b97766e6 fix(default): replace deprecated magit staging commands
magit-{stage,unstage}-buffer-file were deprecated in Magit 4.3.2 for
magit-file-{stage,unstage}.

Amend: 8afc08a7a8
Close: #8342
Co-authored-by: panchoh <panchoh@users.noreply.github.com>
2025-04-05 15:22:40 -04:00
5020d592da fix: tooltip-resize-echo-area = t
Since we disable tooltip-mode, the echo-area should expand to display
multi-line output, to be consistent with our default for
resize-mini-windows. This also fixes the truncation of annotations in
PDF buffers (#1615).

Fix: #1615
2025-04-05 02:14:54 -04:00
a13fda7ec0 fix(magit): don't auto-revert non-file-visiting buffers
Fix: #8339
Amend: 17a870fef8
2025-04-05 02:02:00 -04:00
457b7cab1e docs(undo): doctor: check for other undo package
If the user has installed one package while :emacs undo installs the
other, they're gonna have a bad time.
2025-04-05 02:00:12 -04:00