summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-19 17:05:28 +0200
commitd39747b5b23025025bb59ecfb06600308c3bc2bf (patch)
tree42832d08a7bb661c9957f6d8d064ee03723efece
parent1e2cd1327833033e3e2c490d9f664ed1eb7c2056 (diff)
emacs: Use consult
-rw-r--r--.config/emacs/modules/mm-completion.el17
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)