summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.org b/README.org
index dd93cb2..9f838a4 100644
--- a/README.org
+++ b/README.org
@@ -407,7 +407,9 @@ modes using a menu-item filter.
(corfu-preselect 'directory) ;; Select the first candidate, except for directories
:init
+ (global-corfu-mode)
+ :config
;; Free the RET key for less intrusive behavior.
;; Option 1: Unbind RET completely
;; (keymap-unset corfu-map "RET")
@@ -415,9 +417,7 @@ modes using a menu-item filter.
(keymap-set corfu-map "RET" `( menu-item "" nil :filter
,(lambda (&optional _)
(and (derived-mode-p 'eshell-mode 'comint-mode)
- #'corfu-send))))
-
- (global-corfu-mode))
+ #'corfu-send)))))
#+end_src
** TAB-and-Go completion