diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2022-02-13 18:34:47 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-02-13 18:34:47 +0100 |
| commit | f3511af46862c5204424ccc47184accf7eb2034b (patch) | |
| tree | 26b63ce1d0de1c1d15042baa1b05ff17651a3910 /README.org | |
| parent | 0c735c2362877bf72856195f9b91c64634968f7c (diff) | |
README: Simplify
Diffstat (limited to 'README.org')
| -rw-r--r-- | README.org | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |
