branch: externals/corfu
commit 0ba253c4c051aca6e8e01a98f4d2439702ff2760
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@daniel-mendler.de>

    Fix README (Fix #492)
---
 README.org | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
index bc7aa61c2c..2c308bd495 100644
--- a/README.org
+++ b/README.org
@@ -412,11 +412,9 @@ modes using a menu-item filter.
         ;; Option 1: Unbind RET completely
         ;;; ("RET" . nil)
         ;; Option 2: Use RET only in shell modes
-        ("RET" . (menu-item
-                  "" nil :filter
-                  (lambda (&optional _)
-                    (and (or (derived-mode-p 'eshell-mode) (derived-mode-p 
'comint-mode))
-                         #'corfu-send)))))
+        :filter
+        (or (derived-mode-p 'eshell-mode) (derived-mode-p 'comint-mode))
+        ("RET" . #'corfu-send))
 
   :init
   (global-corfu-mode))

Reply via email to