Skip to content

Commit bab0370

Browse files
committed
Stop consult from shadowing avy on M-g e and M-g f
The vertico module imported consult's recommended M-g bindings verbatim, which silently overrode the avy bindings set in core. Drop just those two so avy-goto-word-0 and avy-goto-line keep working out of the box.
1 parent 76b17df commit bab0370

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
- Fix `prelude-ocaml` integration with `neocaml`: hook into `neocaml-base-mode` (so `.mli` files are covered), enable `ocaml-eglot-mode` properly, and call `prelude-lsp-enable` so the LSP server actually starts.
2727
- Use `ocaml-eglot-mode` instead of the obsolete `ocaml-eglot` alias (renamed in `ocaml-eglot` 1.4.0).
2828
- Add a temporary `eglot-server-programs` entry for `neocaml` so older `neocaml` versions still get `ocamllsp` started. Can be removed once `neocaml >= 20260331` is widely available on MELPA.
29+
- Drop `M-g e` and `M-g f` from `prelude-vertico`'s consult bindings so they no longer shadow the avy bindings (`avy-goto-word-0`, `avy-goto-line`) set in core. Bind `consult-compile-error` / `consult-flymake` in your personal config if you want them.
2930

3031
## 2.1.0 (2026-03-29)
3132

modules/prelude-vertico.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,11 @@
109109
;; Other custom bindings
110110
("M-y" . consult-yank-pop) ;; orig. yank-pop
111111
;; M-g bindings (goto-map)
112-
("M-g e" . consult-compile-error)
113-
("M-g f" . consult-flymake)
112+
;; Note: M-g e and M-g f are intentionally omitted from consult's
113+
;; recommended bindings to avoid clobbering Prelude's long-standing
114+
;; avy bindings (avy-goto-word-0 and avy-goto-line). Bind
115+
;; consult-compile-error / consult-flymake in your personal config
116+
;; if you'd rather have them.
114117
("M-g g" . consult-goto-line) ;; orig. goto-line
115118
("M-g M-g" . consult-goto-line) ;; orig. goto-line
116119
("M-g o" . consult-outline) ;; Alternative: consult-org-heading

0 commit comments

Comments
 (0)