Commit graph

18936 commits

Author SHA1 Message Date
Henrik Lissner
344881cbf5
fix: blank frame on can't-find-font error during startup
Due to our inhibit-redisplay hack, a missing font could lead to a blank
Emacs after startup. This change fixes that so that not only is an error
emitted when Emacs can't find your font, but the error will be a little
more readable.

This is a stopgap solution until I finish a better one I'm preparing for
v3.

Fix: #7055
2024-05-21 17:16:47 +02:00
Henrik Lissner
a103cb3a2d
fix(doom): remove neotree icon config
Since we've remove all-the-icons, doom-themes-neotree-config will no
longer work properly, so I disable it for now (not a complete solution
though; we still need proper nerd-icons support for neotree).

Fix: #7634
Ref: #7664
2024-05-21 17:16:47 +02:00
Henrik Lissner
9fce355e8e
fix(org): list checkbox toggle on RET
A subtle change in the way org-toggle-checkbox handles its prefix
argument changed how RET (+org/dwim-at-point) handled list
checkboxes (incorrectlying swapping [ ] with [-], but not back, unless
the cursor was directly on top of the checkbox).
2024-05-21 17:16:47 +02:00
Henrik Lissner
a8496b258a
fix(default): +evil module flag typo 2024-05-21 17:16:47 +02:00
Henrik Lissner
3188d1766b
docs(format): +format-in-org-src-blocks-fn: add docstring 2024-05-21 17:16:46 +02:00
Henrik Lissner
069c235da2
fix(format): +format-in-org-src-blocks-fn
Didn't return non-nil, so whether or not it worked, Apheleia would
attempt to (ineffectually) format the org buffer afterwards.

Also remove unneeded beg/end checks (the functions always receive a
value).
2024-05-21 17:16:46 +02:00
Henrik Lissner
b1b75f551c
dev: update license year
Hey! The world didn't end. How about that?

This year though...

Ref: 2df6a2e28a
2024-05-21 17:16:46 +02:00
TEC
bbf8934fd3
tweak(cli): use fancier string-dist suggestion alg
To improve the quality of "did you mean?"-style suggestions, shift from
using Ratcliff-Obershelp similarity to the Restricted
Damerau-Levenshtein string distance (also known as Optimal String
Alignment).

This code is a translation of a Julia implementation that I wrote a
while ago:
https://github.com/tecosaur/DataToolkitBase.jl/blob/v0.4.1/src/model/utils.jl#L40-L107

See https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance#Optimal_string_alignment_distance
and https://en.wikipedia.org/wiki/Gestalt_pattern_matching for more
information on these algorithms.
2024-05-21 17:16:46 +02:00
Henrik Lissner
1b906f6130
bump: :lang dart
emacs-lsp/lsp-dart@e7ee6afc2e -> emacs-lsp/lsp-dart@f51c80f545

Includes a fix for the lsp-dart daemon failing to
start (emacs-lsp/lsp-dart#209).

Ref: emacs-lsp/lsp-dart#209
Close: #7677
Co-authored-by: abdulhaq-e <abdulhaq-e@users.noreply.github.com>
2024-05-21 17:16:46 +02:00
Henrik Lissner
773bf46f5e
refactor(format): improve lsp/eglot formatter dispatchers 2024-05-21 17:16:46 +02:00
Henrik Lissner
02ce4ee2b9
feat(format): add eglot support
Fix: #7673
2024-05-21 17:16:46 +02:00
Henrik Lissner
4426d10692
refactor(format): introduce +format-functions 2024-05-21 17:16:45 +02:00
Kirill A. Korinsky
48c602c605
tweak(wanderlust): don't show DomainKey-Signature 2024-05-21 17:16:45 +02:00
Kirill A. Korinsky
68e74cb9fc
bump: :email wanderlust
wanderlust/wanderlust@9fd2c65e8d -> wanderlust/wanderlust@c15e8ece4f
2024-05-21 17:16:45 +02:00
Henrik Lissner
3ccc70adc6
fix(vertico): use remote fd in tramp buffers 2024-05-21 17:16:45 +02:00
Henrik Lissner
9a56a6feee
fix: exclude indent detection in derived modes
Changes what major modes we exclude from dtrt-indent's auto-detection.
Any mode in doom-detect-indentation-excluded-modes, plus derived modes,
will be excluded instead of only the parent modes.

This indirectly fixes an issue where org-mode derivatives (like
org-journal-mode) have their tab-width changed (#7670), causing the
`org-current-text-column` macro to throw the following error:

  Tab width in Org files must be 8, not N.  Please adjust your
  `tab-width' settings for Org mode.

I opted for this solution instead rather than adding all possibly
derivatives to `doom-detect-indentation-excluded-modes`.

Fix: #7670
Ref: 38dd882685/lisp/org-macs.el (L1154)
2024-05-21 17:16:45 +02:00
Henrik Lissner
ab85fd4322
fix(org): initialize eldoc in org-mode buffers
A recent change upstream (see emacsmirror/org-contrib@6e208c87bf)
removed the autoload for adding org-eldoc-load to org-mode-hook, so we
have to add the hook ourselves (the function is still autoloaded,
fortunately).

Also moves org-eldoc config into its own use-package! block.

Fix: #7633
Ref: emacsmirror/org-contrib@6e208c87bf
2024-05-21 17:16:45 +02:00
Tim Ruffing
b00a01ea06
tweak(org): honor default command when archiving
Change the binding for archiving to `org-archive-subtree-default`, which
is the recommend "catch-all" command in the org manual. The user can
specify the actual command in `org-archive-default-command`. The default
for this variable is `org-archive-subtree`, which we previously used for
the binding, so this commit changes behavior only for users who have set
`org-archive-default-command` explicitly.
2024-05-21 17:16:45 +02:00
Mathew
e3deab3e21
fix(lib): doom/sudo-find-file: expand given path
It's possible for the user to type shell variables (something like
`$MYVAR/dir/filename`) as part of the filepath, so we need to call
`expand-file-name`.
2024-05-21 17:16:44 +02:00
Colin Woodbury
f6e4dce1be
docs(fortran): show how to customize fprettier 2024-05-21 17:16:44 +02:00
Benjamin Schwehn
97cf1b5d69
fix(file-templates): unknown directive error from __license-lgpl3
The misspelling produces a 'Ignoring unknown directive "contribuer"'
error, which was introduced in joaotavora/yasnippet@25f5d88.

Ref: joaotavora/yasnippet@25f5d8808a
2024-05-21 17:16:44 +02:00
Henrik Lissner
89d8170eac
fix(lib): doom-project-find-file: remove +vertico/consult-fd-or-find
When +vertico/find-file-in was replaced in 60e22fd with
+vertico/consult-fd-or-find, it changed a key behavior for
doom-project-find-file for Vertico users: instead of displaying an
initial list of all files under the target directory, it would display
nothing until the user entered in N * `consult-async-min-input`
characters, causing confusion (see linked comment).

Since Vertico integration modifies project-find-file-in's interface
appropriately, I leave it to that command instead.

Ref: https://github.com/doomemacs/doomemacs/issues/7312#issuecomment-1933404444
Amend: 60e22fd2eb61
2024-05-21 17:16:44 +02:00
Henrik Lissner
0c4c63200c
fix(lib): doom-project-find-file: cl-no-applicable-method project-root
Fix: #7312
2024-05-21 17:16:44 +02:00
Henrik Lissner
3074e4648d
nit(popup): mention post-command-select-window for 30.x+
Ref: emacs-mirror/emacs@6f75d0f36d
2024-05-21 17:16:44 +02:00
Henrik Lissner
f748b9778a
fix(cli): ensure $EMACSDIR/lisp/cli is in $DOOMPATH
If $DOOMPATH is malformed or set to a value that does not contain a
valid path to Doom's CLI library in $EMACSDIR/lisp/cli (see #7608),
bin/doom no longer functions, emitting "a subcommand is required"
errors.

This change ensures that the CLI library is always the last (implicit)
element in doom-cli-load-path, and ensures $DOOMPATH is never written to
the user's envvar file (in case they try to use bin/doom from inside a
terminal within a Doom Emacs session), which should ensure users -- at
least -- never find themselves stranded without the Doom CLI.

Fix: #7608
Co-authored-by: bpizzi <bpizzi@users.noreply.github.com>
2024-05-21 17:16:43 +02:00
Henrik Lissner
48ceefef15
bump: :tools magit :emacs vc
magit/forge@ba35ffc9ba -> magit/forge@3fc6c362b0
magit/git-modes@4a61a9b86d -> magit/git-modes@3cc94974c0
magit/magit@54d37dc14c -> magit/magit@b68e0a3c33

Ref: magit/forge@3fc6c362b0
2024-05-21 17:16:43 +02:00
Henrik Lissner
833dd0c067
fix(emacs-lisp): 'defining as dynamic an already lexical var' error
Fix: #7653
Amend: 3bea4f66a844
2024-05-21 17:16:43 +02:00
Henrik Lissner
d3d857f9fa
nit: early-init: revise comments 2024-05-21 17:16:43 +02:00
Henrik Lissner
1ef759989a
fix: early-init: expand string-remove-suffix
Some builds of Emacs inexplicably fail to autoload subr-x at startup,
meaning functions like string-remove-suffix are not guaranteed to be
available. Rather than eagerly load the library too early, I opt for the
safer option: to expand the single call into its lower level components.

Ref: #7608
2024-05-21 17:16:43 +02:00
Zero King
db039b4d1c
fix: void-variable doom-modules-load-path error
Amend: 343c3a82b06a
2024-05-21 17:16:43 +02:00
Henrik Lissner
adfa438487
fix: --profile switch in noninteractive sessions
This fixes command-line-args getting prematurely cleared out just before
being scanned for a --profile switch.

Fix: #7457
Co-authored-by: hpfr <hpfr@users.noreply.github.com>
2024-05-21 17:16:43 +02:00
Henrik Lissner
9b8c8449c6
refactor: remove all-the-icons
I began phasing out all-the-icons in 9787022. Now that Doom has
no (first order) dependencies that depend on it (and enough time has
passed), it's time to remove it.

Ref: 9787022b839d
2024-05-21 17:16:42 +02:00
Colin Woodbury
6d5d03aa70
feat(common-lisp): introduce sly-overlay 2024-05-21 17:16:42 +02:00
Henrik Lissner
bffa3f2694
bump: :core
bbatsov/projectile@9446ea92d2 -> bbatsov/projectile@e45f0b0cc4
domtronn/all-the-icons.el@be9d5dcda9 -> domtronn/all-the-icons.el@ee41438493
emacs-compat/compat@ea8de2ea18 -> emacs-compat/compat@eb8fbfa558
emacs-straight/project@f64bcf065c -> emacs-straight/project@10a6b691e3
jscheid/dtrt-indent@e0630f74f9 -> jscheid/dtrt-indent@0230ec5032
noctuid/general.el@833dea2c4a -> noctuid/general.el@bda777cd30
rainstormstudio/nerd-icons.el@e109d09b95 -> rainstormstudio/nerd-icons.el@c6a4acf194
2024-05-21 17:16:42 +02:00
Kirill A. Korinsky
e23aa6b55d
tweak(wanderlust): sane forward tag 2024-05-21 17:16:42 +02:00
Kirill A. Korinsky
fe3d77570d
tweak(wanderlust): add +xface flag 2024-05-21 17:16:42 +02:00
Kirill A. Korinsky
9534998b7a
fix(wanderlust): enforce wl-message-id-domain only on automatic gmail config 2024-05-21 17:16:42 +02:00
Kirill A. Korinsky
97eabd73d2
tweak(wanderlust): do not truncate long subjects or mail lines 2024-05-21 17:16:42 +02:00
Kirill A. Korinsky
b9e6b282cf
fix(wanderlust): avoid File name too long... 2024-05-21 17:16:41 +02:00
Kirill A. Korinsky
1302f01389
tweak(wanderlust): don't show DKIM, ARC and similar signatures 2024-05-21 17:16:41 +02:00
Kirill A. Korinsky
b31119940d
tweak(wanderlust): switch to alerting 2024-05-21 17:16:41 +02:00
Kirill A. Korinsky
b36dd2d0cb
bump: :email wanderlust
wanderlust/flim@80b8121f05 -> wanderlust/flim@abdd231500
wanderlust/semi@9370961ddc -> wanderlust/semi@9063a4485b
wanderlust/wanderlust@8369b2d517 -> wanderlust/wanderlust@9fd2c65e8d
2024-05-21 17:16:41 +02:00
Filipe Regadas
a715385ba0
fix(dired): void-variable dired-omit-files error
Caused by a recent bump to :emacs dired (see e242ac9).

Fix: #6562
Amend: e242ac954848
2024-05-21 17:16:41 +02:00
Henrik Lissner
fed693404f
bump: code-review
doomelpa/code-review@26f426e992 -> doomelpa/code-review@2670a4beb6

Improves closql compatibility.

Ref: doomelpa/code-review#2
2024-05-21 17:16:41 +02:00
Henrik Lissner
538c4e9265
fix(magit): remove lazy emacsqlite build hack
This was resolved upstream some time ago and is now a source of
errors (void-variable emacsql-sqlite-executable errors) if forge were
ever bumped (which it was, yesterday, in 1a05e2f).

Ref: magit/forge@398ca3a17a
Amend: 1a05e2fa6429
2024-05-21 17:16:41 +02:00
Henrik Lissner
bea387d8bc
bump: :os tty
7696122/evil-terminal-cursor-changer@12ea9c0438 -> 7696122/evil-terminal-cursor-changer@2358f3e27d
emacs-straight/xclip@a1ac607f75 -> emacs-straight/xclip@2dfa5fa175

- evil-terminal-cursor-changer added kitty support
2024-05-21 17:16:40 +02:00
Henrik Lissner
71f844a220
bump: :input
cute-jumper/fcitx.el@12dc2638dd -> cute-jumper/fcitx.el@b399482ed8
emacs-jp/migemo@f756cba3d5 -> emacs-jp/migemo@7d78901773
laishulu/evil-pinyin@3e9e501ded -> laishulu/evil-pinyin@0fae5ad876
merrickluo/liberime@8291e22cd0 -> merrickluo/liberime@cc9eb9812f
skk-dev/ddskk@c24a624884 -> skk-dev/ddskk@8c47f46e38
tumashu/posframe@0d23bc5f7c -> tumashu/posframe@017deece88
tumashu/pyim@de7eff2a58 -> tumashu/pyim@64067b20ce
2024-05-21 17:16:40 +02:00
Henrik Lissner
87bf25b003
bump: :emacs
alexluigit/dirvish@4fe9c00894 -> alexluigit/dirvish@119f9f59a6
emacs-straight/dired-git-info@9461476a28 -> emacs-straight/dired-git-info@6b6f2a5d71
emacs-straight/vundo@24271862a2 -> emacs-straight/vundo@10d011fb05
emacsmirror/git-timemachine@d8ffd0d7cc -> emacsmirror/git-timemachine@ac933e5cd2
ideasman42/emacs-undo-fu-session@a6c4f73bc2 -> ideasman42/emacs-undo-fu-session@2b355c9d39
ideasman42/emacs-undo-fu@0e74116fd5 -> ideasman42/emacs-undo-fu@04961ba775
magit/git-modes@f0a0154bf4 -> magit/git-modes@4a61a9b86d
magit/magit@4881835572 -> magit/magit@54d37dc14c
purcell/diredfl@f9140b2c42 -> purcell/diredfl@f6d599c308
purcell/ibuffer-vc@1388d2ea18 -> purcell/ibuffer-vc@66d0226733
rainstormstudio/nerd-icons-dired@4a068884bf -> rainstormstudio/nerd-icons-dired@c1c7348863
rmuslimov/browse-at-remote@c020975a89 -> rmuslimov/browse-at-remote@76aa27dfd4
stsquad/dired-rsync@7940d9154d -> stsquad/dired-rsync@5bcb851f3b
2024-05-21 17:16:40 +02:00
Henrik Lissner
a81ce30f15
bump: :email mu4e notmuch
https://git.notmuchmail.org/git/notmuch@b6f144abe1f5 -> https://git.notmuchmail.org/git/notmuch@2f0320c5f24a
jao/consult-notmuch@d0d4129d45 -> jao/consult-notmuch@d8022e2ddc
jeremy-compostella/org-msg@055de4abf6 -> jeremy-compostella/org-msg@0b65f0f77a
org-mime/org-mime@d368bd4119 -> org-mime/org-mime@9d4584651d
tarsius/ol-notmuch@781c3518a5 -> tarsius/ol-notmuch@881991d94a
2024-05-21 17:16:40 +02:00
Henrik Lissner
5767296cbc
bump: :completion
DarwinAwardWinner/ido-completing-read-plus@49e7967ea8 -> DarwinAwardWinner/ido-completing-read-plus@5995b4605b
company-mode/company-mode@ed46a616ab -> company-mode/company-mode@02903bd708
emacs-helm/helm@96aad023cb -> emacs-helm/helm@f34ea6b702
lewang/flx@7b44a5abb2 -> lewang/flx@4b1346eb9a
mhayashi1120/Emacs-wgrep@3132abd375 -> mhayashi1120/Emacs-wgrep@208b9d01cf
minad/consult@e4d3712356 -> minad/consult@9463146ba7
minad/vertico@cf8b2abf52 -> minad/vertico@4a7da56b02
oantolin/embark@33c392cf3c -> oantolin/embark@60139db879
radian-software/prescient.el@707c25c947 -> radian-software/prescient.el@4b875be52e
tumashu/vertico-posframe@bc0e67cbbb -> tumashu/vertico-posframe@2e0e09e5bb
2024-05-21 17:16:40 +02:00