emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 43fcda0c8ea: ; * etc/NEWS (Eshell): Fix example for restoring old


From: Jim Porter
Subject: master 43fcda0c8ea: ; * etc/NEWS (Eshell): Fix example for restoring old history search.
Date: Wed, 18 Dec 2024 00:24:53 -0500 (EST)

branch: master
commit 43fcda0c8eafa2c7bfc0a416a48b223c6fec4d87
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    ; * etc/NEWS (Eshell): Fix example for restoring old history search.
---
 etc/NEWS | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index f9ed0dd17e7..7529778378d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -449,10 +449,11 @@ is freed for normal search commands.  If you would like 
to restore the
 previous key-bindings for the non-incremental search commands, put in
 your configuration:
 
-    (keymap-set eshell-hist-mode-map "M-r"
-                #'eshell-previous-matching-input)
-    (keymap-set eshell-hist-mode-map "M-s"
-                #'eshell-next-matching-input)
+    (with-eval-after-load 'em-hist
+      (keymap-set eshell-hist-mode-map "M-r"
+                  #'eshell-previous-matching-input)
+      (keymap-set eshell-hist-mode-map "M-s"
+                  #'eshell-next-matching-input))
 
 +++
 *** New user option 'eshell-history-isearch'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]