diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-19 17:05:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-19 17:05:28 +0200 |
commit | d39747b5b23025025bb59ecfb06600308c3bc2bf (patch) | |
tree | 42832d08a7bb661c9957f6d8d064ee03723efece /.config/emacs/modules/mm-completion.el | |
parent | 1e2cd1327833033e3e2c490d9f664ed1eb7c2056 (diff) |
emacs: Use consult
Diffstat (limited to '.config/emacs/modules/mm-completion.el')
-rw-r--r-- | .config/emacs/modules/mm-completion.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/emacs/modules/mm-completion.el b/.config/emacs/modules/mm-completion.el index 0de3170..91ecd5e 100644 --- a/.config/emacs/modules/mm-completion.el +++ b/.config/emacs/modules/mm-completion.el @@ -58,4 +58,21 @@ (use-package savehist-mode :hook (after-init . savehist-mode)) + +;;; Enhanced Replacements for Builtins + +;; TODO: Investigate other commands +(use-package consult + :ensure t + :bind ( ([remap switch-to-buffer] . consult-buffer) + :map consult-narrow-map + ("?" . consult-narrow-help)) + :config + (with-eval-after-load 'project + (keymap-set project-prefix-map "b" #'consult-project-buffer)) + (with-eval-after-load 'pulsar + (setopt consult-after-jump-hook nil) + (dolist (command #'(pulsar-recenter-top pulsar-reveal-entry)) + (add-hook 'consult-after-jump-hook command)))) + (provide 'mm-completion) |