From 486a9d25f4685af44e6b499b7760a279a0dda645 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Thu, 19 Sep 2024 15:20:24 -0700 Subject: [PATCH] Use consult for eshell history --- thoom-emacs/modules/thoom-eshell.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/thoom-emacs/modules/thoom-eshell.el b/thoom-emacs/modules/thoom-eshell.el index cd20bd4..5a412f2 100644 --- a/thoom-emacs/modules/thoom-eshell.el +++ b/thoom-emacs/modules/thoom-eshell.el @@ -47,6 +47,11 @@ any directory proferred by `consult-dir'." (t (eshell/cd (if regexp (eshell-find-previous-directory regexp) (completing-read "cd: " eshell-dirs)))))))) +(use-package eshell + :bind (:map eshell-hist-mode-map + ("M-r" . consult-history)) + :after em-hist) + (use-package pcre2el :ensure t :config