emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/corfu f3511af468: README: Simplify


From: ELPA Syncer
Subject: [elpa] externals/corfu f3511af468: README: Simplify
Date: Sun, 13 Feb 2022 12:57:22 -0500 (EST)

branch: externals/corfu
commit f3511af46862c5204424ccc47184accf7eb2034b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Simplify
---
 README.org | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/README.org b/README.org
index e41b781d01..4c433a4748 100644
--- a/README.org
+++ b/README.org
@@ -225,12 +225,7 @@ define the command ~corfu-insert-and-send~ which performs 
the two steps at once.
      ((derived-mode-p 'comint-mode)
       (comint-send-input))))
 
-  (add-hook 'eshell-mode
-            (lambda ()
-              ;; Create a local copy of corfu-map
-              (setq-local corfu-map (copy-keymap corfu-map))
-              ;; Rebind RET to corfu-insert-and-send
-              (define-key corfu-map "\r" #'corfu-insert-and-send)))
+  (define-key corfu-map "\r" #'+corfu-insert-and-send)
 #+end_src
 
 Shell completion uses the flexible ~pcomplete~ mechanism internally, which 
allows



reply via email to

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