summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2022-02-13 18:34:47 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2022-02-13 18:34:47 +0100
commitf3511af46862c5204424ccc47184accf7eb2034b (patch)
tree26b63ce1d0de1c1d15042baa1b05ff17651a3910 /README.org
parent0c735c2362877bf72856195f9b91c64634968f7c (diff)
README: Simplify
Diffstat (limited to 'README.org')
-rw-r--r--README.org7
1 files changed, 1 insertions, 6 deletions
diff --git a/README.org b/README.org
index e41b781..4c433a4 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