diff options
author | Ashton Wiersdorf <mail@wiersdorf.dev> | 2023-11-27 12:15:33 -0700 |
---|---|---|
committer | Ashton Wiersdorf <mail@wiersdorf.dev> | 2023-11-27 12:15:33 -0700 |
commit | 949d8a5dbed851f920f30982a85eb8f4766314fa (patch) | |
tree | 281712cf7f5e7bbe2b81e71944a85be33f02486d | |
parent | 33711da0151142ebc688b956a01c6566c37128b4 (diff) |
Fix consult-history binding in eshell
Closes #13
Thanks to Thomas Riccardi for reporting this bug!
-rw-r--r-- | extras/base.el | 7 |
1 files changed, 6 insertions, 1 deletions
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 |