From 949d8a5dbed851f920f30982a85eb8f4766314fa Mon Sep 17 00:00:00 2001 From: Ashton Wiersdorf Date: Mon, 27 Nov 2023 12:15:33 -0700 Subject: Fix consult-history binding in eshell Closes #13 Thanks to Thomas Riccardi for reporting this bug! --- extras/base.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extras/base.el b/extras/base.el index 7a88868..4701820 100644 --- a/extras/base.el +++ b/extras/base.el @@ -156,7 +156,12 @@ (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter)) (use-package eshell - :bind (("C-r" . consult-history))) + :init + (defun bedrock/setup-eshell () + ;; Something funny is going on with how Eshell sets up its keymaps; this is + ;; a work-around to make C-r bound in the keymap + (keymap-set eshell-mode-map "C-r" 'consult-history)) + :hook ((eshell-mode . bedrock/setup-eshell))) ;; Orderless: powerful completion style (use-package orderless -- cgit v1.2.3