summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org8
1 files changed, 3 insertions, 5 deletions
diff --git a/README.org b/README.org
index bc7aa61..2c308bd 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))