Commit graph

18972 commits

Author SHA1 Message Date
Henrik Lissner
3037d364b2
bump: :lang javascript
abicky/nodejs-repl.el@3b841055ca -> abicky/nodejs-repl.el@03d0b64768
emacs-typescript/typescript.el@4fcb459481 -> emacs-typescript/typescript.el@fc3a4f3b27
js-emacs/xref-js2@fd6b723e7f -> js-emacs/xref-js2@e215af9eed

- (#7865) Adds support for satsifies keyword in typescript-mode.

Close: #7865
Co-authored-by: kisaragi-hiu <kisaragi-hiu@users.noreply.github.com>
2024-06-20 18:28:12 -04:00
Henrik Lissner
0a2bcf928c
feat(lookup): +lookup/file: search file tree for relative paths
Given a relative file path that:

- Doesn't exist, relative to the open file/buffer (default-directory),
- Doesn't exist, relative to the project root,
- Doesn't satisfy any of the other rules in ffap-alist,
- Contains more than one segment (forward slashes),

The +lookup/file command will walk the file tree from default-directory
to the project root to search for the path, so given:

  project
  └── src
      ├── a
      │   └── a.h
      └── b
          └── b.h

This command, run on 'b/b.h' in a/a.h, will open b/b.h (but 'b.h' alone
won't work, which is intended, to reduce false positives).

Close: #7890
Co-authored-by: liuzhishan <liuzhishan@users.noreply.github.com>
2024-06-20 18:28:12 -04:00
Henrik Lissner
cffb3838ec
bump: :completion
abo-abo/swiper@1f88e54990 -> abo-abo/swiper@2a25a6fb5b
company-mode/company-mode@b0a522ac5b -> company-mode/company-mode@1a0fc12a9c
elken/yasnippet-capf@9043f82751 -> elken/yasnippet-capf@744dedb783
emacs-helm/helm@28f62344fe -> emacs-helm/helm@f8949afd9b
karthink/consult-dir@3f5f4b71eb -> karthink/consult-dir@15891383f3
minad/cape@e01e443023 -> minad/cape@f61da109a9
minad/consult@c87b0bf06d -> minad/consult@fe48522800
minad/corfu@35cd5a0f3c -> minad/corfu@cdc3e13ad3
minad/marginalia@3275d1f85c -> minad/marginalia@da72da4622
minad/vertico@68e51fda55 -> minad/vertico@ba650a7ab9
oantolin/embark@d3c9d1b4c8 -> oantolin/embark@9c166c4b96
oantolin/orderless@ac4aeb66f3 -> oantolin/orderless@53f5204ad3
radian-software/prescient.el@c39bf07c56 -> radian-software/prescient.el@0765418e43
seagle0128/nerd-icons-ivy-rich@7197614b27 -> seagle0128/nerd-icons-ivy-rich@86a896bb48

Close: #7862
Fix: #7863
2024-06-20 18:28:12 -04:00
Kirill A. Korinsky
c76b336f0d bump: :email wanderlust
wanderlust/apel@82eb2325bd -> wanderlust/apel@1a6fd3bab2
wanderlust/flim@abdd231500 -> wanderlust/flim@23bb29d70a
wanderlust/semi@9063a4485b -> wanderlust/semi@85a52b899a
wanderlust/wanderlust@c15e8ece4f -> wanderlust/wanderlust@8a0ea2146e
2024-06-20 18:27:35 -04:00
Kirill A. Korinsky
954748308b tweak(wanderlust): switch to use UTF-8 as default charset 2024-06-20 18:27:35 -04:00
Kirill A. Korinsky
bdcf433b04 tweak(wanderlust): hide more technical headers 2024-06-20 18:27:35 -04:00
André Silva
874b536892 fix(ligatures): set-font-ligatures! reset on nil 2024-06-20 18:20:31 -04:00
Hyunggyu Jang
6479fc7132 fix(word-wrap): choose first element if indent-var is list 2024-06-19 22:25:34 -04:00
Henrik Lissner
517daa4ed9
bump: :core
Fuco1/smartparens@ddc6233ea6 -> Fuco1/smartparens@a5c68cac1b
emacs-compat/compat@8d4e8a3666 -> emacs-compat/compat@80dbd9bc5e
emacs-straight/project@b6989856ab -> emacs-straight/project@93aa1872e9
justbur/emacs-which-key@96911a1d3f -> justbur/emacs-which-key@1e89fa000e
noctuid/general.el@ced143c30d -> noctuid/general.el@826bf2b97a
radian-software/straight.el@b1062df10b -> radian-software/straight.el@88e574ae75
rainstormstudio/nerd-icons.el@8095215a50 -> rainstormstudio/nerd-icons.el@4322290303
2024-06-03 16:22:10 -04:00
Henrik Lissner
afa7a24eee
bump: :tools debugger lsp
emacs-lsp/dap-mode@c95537c58e -> emacs-lsp/dap-mode@11431a26bc
emacs-lsp/lsp-mode@8861252880 -> emacs-lsp/lsp-mode@acad044ebc
emacs-lsp/lsp-ui@942eeecc3d -> emacs-lsp/lsp-ui@00f1fecdfb
emacs-straight/eglot@678610fdc5 -> emacs-straight/eglot@e7e49c789c
gagbo/consult-lsp@f8db3252c0 -> gagbo/consult-lsp@6858391316
tumashu/posframe@017deece88 -> tumashu/posframe@f4e9e509ba

Close: #7820
2024-06-03 16:22:10 -04:00
Henrik Lissner
5a8d65bc51
bump: :tools magit :emacs vc
alphapapa/magit-todos@332ce763f7 -> alphapapa/magit-todos@501c8db90a
magit/forge@ad94b5665d -> magit/forge@c3675fd068
magit/git-modes@3cc94974c0 -> magit/git-modes@52ea2a1281
magit/magit@b5637d665c -> magit/magit@f9268a9598
2024-06-03 16:22:10 -04:00
Henrik Lissner
7c20ef2619
bump: :editor parinfer
justinbarclay/parinfer-rust-mode@8df117a3b5 -> justinbarclay/parinfer-rust-mode@e9a23e136b

Close: #7876
Co-authored-by: welcome-linja <welcome-linja@users.noreply.github.com>
2024-06-03 16:22:10 -04:00
Henrik Lissner
49eaa532e1
bump: :lang emacs-lisp scheme web zig
emacs-geiser/chibi@5a6a5a580e -> emacs-geiser/chibi@2502fed134
emacs-geiser/geiser@bb77719c25 -> emacs-geiser/geiser@b6b4ac070d
emacs-geiser/guile@6e0811c75d -> emacs-geiser/guile@71a6be0043
emacs-straight/rainbow-mode@70ed10d410 -> emacs-straight/rainbow-mode@0740f31f30
emacsorphanage/macrostep@0b04a89f69 -> emacsorphanage/macrostep@4939d88779
fxbois/web-mode@82847071ce -> fxbois/web-mode@005aa62d6f
jorgenschaefer/emacs-buttercup@24d43b2ce2 -> jorgenschaefer/emacs-buttercup@a1a86b027f
slim-template/emacs-slim@3636d18ab1 -> slim-template/emacs-slim@8c92169817
ziglang/zig-mode@079149a19f -> ziglang/zig-mode@f55e42536a

Close: #7884
Close: #7878
Co-authored-by: welcome-linja <welcome-linja@users.noreply.github.com>
2024-06-03 16:22:09 -04:00
Henrik Lissner
b4531dd359
tweak(web): remove M-/ keybind
As brought up in #7866, M-/ is bound to dabbrev-expand by default. Also,
a `M-;` keybind already exists on web-mode-map for commenting (and is
the vanilla default for commenting in other modes), so I'm removing this
redundant keybind.

Close: #7866
Co-authored-by: kuba-orlik <kuba-orlik@users.noreply.github.com>
2024-06-03 16:22:09 -04:00
Henrik Lissner
6edd4a3348
perf(chinese): lazy load liberime
Close: #7856
Co-authored-by: merrickluo <merrickluo@users.noreply.github.com>
2024-06-03 16:22:09 -04:00
Henrik Lissner
1d3028688f
perf(cli): bin/doom startup
The call to find temporary-file-directory be a little faster with a
truly barren Emacs session.
2024-06-03 16:22:09 -04:00
Henrik Lissner
e18a509f71
fix: suppress lexical-binding warnings on 30+
These checks and warnings were added on some recent commit of Emacs.
They're annoying to deal with and the end-user typically can't do much
about them (e.g. old packages), so I suppress them across the board.

That said, there are a few we cannot catch in non-interactive
sessions (where they aren't delayed), and those early warnings don't
respect delayed-warnings-list. This ought to be considered a bug
upstream.
2024-06-03 16:22:09 -04:00
Simen Endsjø
587f237e93 fix(org): avoid (file-exists-p "file://") on Windows
Emacs bug#70914 handles `file://whatever` incorrectly, potentially
crashing emacs.

Fixed in emacs commit 350ae75f5c1c47a03560e43e8699781c04c9078a:
    Avoid crashes on MS-Windows due to invalid UNC file names

    * src/w32.c (parse_root): Avoid crashes due to invalid (too short)
    UNC names, such as "\\".  (Bug#70914)
2024-06-03 16:21:00 -04:00
Simen Endsjø
63605189f3 nit(org): reformat or block
I want to add a commented line as the first entry without showing all
lines as changed.
2024-06-03 16:21:00 -04:00
Byungwan Jun
c70b966850 fix(cli): auto-generated script error
The auto-generated script has bom characters on my mac. if bin/doom
exits with code 254, it gives me the below error:
`.../doom.123.0.sh: line 1: #!/usr/bin/env: No such file or directory`
2024-06-03 16:20:13 -04:00
Marien Zwart
e203309e5c refactor(lib): use ripgrep instead of git grep
Although this is a refactor for normal users of Doom, it is a bugfix for
one (I assume) unsupported configuration: when Doom is not running from
a git checkout. In that case, `doom--help-package-configs` currently
returns Git's error messages. This breaks `doom/help-packages` because
it expects each returned line to contain at least one `:` character, so
it errors out with `Wrong number of arguments: (file line _match &rest),
2`.

Using ripgrep here should be equivalent for normal users as long as they
have not added untracked files not covered by Doom's .gitignore.
2024-06-03 16:19:42 -04:00
Merrick Luo
c9df1c5d42 fix(evil): bind git time machine without vc-gutter
git-timemachine keybind should not be guarded by the vc-gutter module
2024-06-03 16:18:09 -04:00
Blue Willow
e740802035 feat(debugger): add gdscript dap-mode support
This commit adds gdscript support to :tool debugger +lsp, which has been
available in dap-mode since a year ago.
2024-06-03 16:17:16 -04:00
Blue
c625b78eb4
fix(gdscript): replace removed functions with new binding
This commit removes the keybinds to add and remove a breakpoint in a
gdscript buffer, which were removed from gdscript-mode long ago, and
replaces them with one binding to toggle a breakpoint.

Fix: #7254
2024-06-03 16:15:47 -04:00
Samuel Tschiedel
47fce87d86 fix(magit): forge-browse-dwim -> forge-browse
Renamed upstream

Ref: magit/forge@ba752a4e9b
2024-06-03 16:14:57 -04:00
StrawberryTea
2729a3f7e3 fix: obey the comp namespace change
Some of the comp functions were declared private.
2024-06-03 15:57:56 -04:00
Henrik Lissner
9620bb45ac
fix(evil): ]f/[f opening broken symlinks 2024-04-18 14:20:48 -04:00
Henrik Lissner
0349dab09a
tweak(default): ensure '<leader> g S' is silent
magit-stage-file prompts the user to select a file to stage, but the
intention for these two keys has always been to (un)stage the current
file (and without prompting). This ensures that is the case.

I've also tweaked their description to make that intention clearer.
2024-04-18 14:17:02 -04:00
Henrik Lissner
2f7b309252
tweak(default): remove +vc/gutter-hydra keybind
Not only is this keybind always overshadowed by the magit-file-dispatch
keybind on the same key, the hydra module is deprecated, so I will
simply remove it.

Fix: #5388
2024-04-18 14:17:02 -04:00
Henrik Lissner
46bcd7e922
bump: :lang go
dominikh/go-mode.el@8dce1e3ba1 -> dominikh/go-mode.el@6f4ff9ef87
weijiangan/flycheck-golangci-lint@9def093e41 -> weijiangan/flycheck-golangci-lint@91c59b128a

- Fixes weijiangan/flycheck-golangci-lint#15: golangci-lint's renamed
  the --deadline option to --timeout. (#7833, #7834)

Close: #7833
Close: #7834
Ref: weijiangan/flycheck-golangci-lint#15
Co-authored-by: blez <blez@users.noreply.github.com>
Co-authored-by: samcrang <samcrang@users.noreply.github.com>
2024-04-18 14:17:02 -04:00
StrawberryTea
0a635e9df9 fix(direnv): fix void function error in emacs30 2024-04-17 04:23:26 -04:00
Levin Du
ede616fdd7
fix(cli): doom-packages-ensure: ensure local packages are built
If the package is local, the local-repo has absolute local file path,
and straight-modified-dir will return as it is, which always exists.

Fix it by passing package only to straight-modified-dir.
2024-04-16 03:00:56 -04:00
Levin Du
5a92e1b94a
fix: doom-initialize-core-packages: extract plist from alist
The doom-package-list is a list of (module :key value ...). To get the
plist, apply cdr first.
2024-04-16 02:59:04 -04:00
Henrik Lissner
5b7d6763f8
revert: org
emacs-straight/org-mode@e9c288dfac -> emacs-straight/org-mode@5bdfc02c6f

org-mode was bumped in 5f5a163, but this introduced substantial
slowdowns in buffers where src and latex blocks were natively
highlighted. This reverts to the latest known commit that doesn't
present this slowness (which is still newer than the commit used in
5f5a163).

Amend: 5f5a163c49
2024-04-11 21:51:14 -04:00
Henrik Lissner
fdeb856210
fix(spell): spell-fu: remove unneeded advice
These issues were addressed upstream.

Ref: emacsmirror/spell-fu@50be652a6e
Ref: emacsmirror/spell-fu@00af362af3
2024-04-11 21:27:09 -04:00
Henrik Lissner
ff4a0bc54a
fix: doom-run-hook-on: check context & chain hooks unconditionally
Consult the doom-context to determine if a transient hook should fire,
rather than after-init-time (less reliable; there may be times we want
them to fire post-init).

Also ensures that they're chained to find-file hooks whether or not this
is a daemon session (since they could concievably be triggered before
the daemon finishes initializing, but after Doom initializes).
2024-04-09 12:42:00 -04:00
Henrik Lissner
96e3255c33
nit: reformat+revise comments
Includes minor refactors to appease the byte-compiler or use more
succinct (but equivalent) syntax.
2024-04-09 12:39:51 -04:00
Henrik Lissner
d317fa4667
refactor: menu-bar (re)initialization on MacOS
Before this, it was non-trivial to *truly* disable the menu-bar in GUI
frames on MacOS, unless you knew about the
doom-restore-menu-bar-in-gui-frames-h hook and removed it. With this
change, the hook will bow out if the user has tampered with/called
menu-bar-mode at all.
2024-04-09 12:29:22 -04:00
Henrik Lissner
da3d0687c5
fix: doom-init-fonts-h: don't run more than needed
The face and theme-face manipulation only needs to happen once per
frame, and the `set-fontset-font` calls only need to happen once per
session (or whenever the user calls `M-x doom/reload-fonts`). This
change ensures this and saves Emacs some work when initializing new
frames, as well as resolves `set-fontset-font` related segfaults in some
edge cases (#7803).

Fix: #7803
2024-04-09 03:14:08 -04:00
Henrik Lissner
42de6282f4
tweak(helm): helm-always-two-windows = t
Don't comandeer the entire frame for helm commands.
2024-04-08 21:20:08 -04:00
Henrik Lissner
a4b7aa1c56
fix(helm): helm-descbinds-disable-which-key = nil
Otherwise, helm-descbind throws errors if which-key is enabled. Setting
prefix-help-command seems to resolve the incompatibility (more testing
is needed).

Ref: emacs-helm/helm-descbinds@ca03f02da4
Ref: emacs-helm/helm-descbinds@14d1929d54
Amend: 52599ab536
2024-04-08 19:53:46 -04:00
Henrik Lissner
21f6fb7576
fix(eval): warnings after eval error
This addresses the warning emitted when evaluating elisp in org-mode:

  Warning (org-element): ‘org-element-at-point’ cannot be used in
  non-Org buffer #<buffer debug.org> (emacs-lisp-mode)

Close: #7753
Fix: #7752
Co-authored-by: pysnow530 <pysnow530@users.noreply.github.com>
2024-04-08 19:53:46 -04:00
StrawberryTea
a8d612385f
tweak(corfu): update dabbrev-ignore-buffer-modes
The Corfu documentation has been updated to suggest more modes to ignore
with `dabbrev-ignore-buffer-modes`. This commit updates the list of
modes to ignore in `cape-dabbrev` to match the documentation.
2024-04-08 18:59:49 -04:00
Henrik Lissner
6756911721
fix(syntax): flycheck popups clearing active region
Moving the cursor over a flycheck-highlighted error will display the
error message in a popup. Displaying that popup could clear the active
selection (#7242), which is disruptive. This only affected non-Evil
users and users not using the module's +childframe flag, but should no
longer affect anyone after this commit.

Fix: #7242
Ref: flycheck/flycheck-popup-tip#14
2024-04-07 16:47:36 -04:00
Henrik Lissner
f99863b9f5
bump: :ui doom
doomemacs/themes@37d2182f50 -> doomemacs/themes@3b2422b208
hlissner/emacs-solaire-mode@8af65fbdc5 -> hlissner/emacs-solaire-mode@8ccdceeb92
2024-04-07 16:10:39 -04:00
Henrik Lissner
968974663d
bump: :editor snippets
doomemacs/snippets@07b3bdaf60 -> doomemacs/snippets@c1384cc797
joaotavora/yasnippet@33587a8551 -> joaotavora/yasnippet@eb5ba2664c

- Recently, yasnippet start complaining about snippets with the same
  name (particularly y-or-n-p and x-file). I've removed/renamed the
  offending snippets in doomemacs/snippets.

Ref: doomemacs/snippets@41417b4398
Ref: doomemacs/snippets@d0a96a37d4
2024-04-07 16:08:40 -04:00
Henrik Lissner
95ba26ba68
bump: :app everywhere
tecosaur/emacs-everywhere@fbeff19825 -> tecosaur/emacs-everywhere@bc91164151

Ref: tecosaur/emacs-everywhere#75
Revert: b439300e6a
2024-04-07 01:58:29 -04:00
Prashant Vithani
ead2ad19dc bump: :lang scala
hvesalai/emacs-sbt-mode@bcf8d60400 -> hvesalai/emacs-sbt-mode@cc68728a6e
2024-04-06 12:59:13 -04:00
Henrik Lissner
69bc471722
fix(workspaces): dual *Warnings* windows at startup
At some point, either Emacs, persp-mode, or I fixed what caused #319,
which swallows the *Warnings* popup when the new main workspace is
created. Until I can determine what fixed it (so I can determine whether
the whole hack should go), I'll simply add this guard.

Ref: #319
2024-04-06 12:55:01 -04:00
Henrik Lissner
4f51652111
fix(lib): remove-recent-file: improve completion UI
Integrates with completion frameworks (particularly vertico) that read
capf metadata.
2024-04-06 12:37:10 -04:00