-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corfu extension not found in commands list #299
Comments
If you install the package via package-install from ELPA, the modes will be there. Maybe you use some non standard installation method? In that case you have to adapt accordingly. |
@minad I am using straight.el (defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(setq-default straight-vc-git-default-clone-depth 1)
(setq straight-use-package-by-default t)
(straight-use-package 'use-package) (defun corfu-enable-in-minibuffer ()
"Enable Corfu in the minibuffer if `completion-at-point' is bound."
(when (where-is-internal #'completion-at-point (list (current-local-map)))
;; (setq-local corfu-auto nil) ;; Enable/disable auto completion
(setq-local corfu-echo-delay nil ;; Disable automatic echo and popup
corfu-popupinfo-delay nil)
(corfu-mode 1)))
(use-package corfu
:init
;; Setup corfu for popup like completion
(setq corfu-cycle t ; Allows cycling through candidates
corfu-auto t ; Enable auto completion
corfu-auto-prefix 1 ; Complete with less prefix keys
corfu-auto-delay 0.0 ; No delay for completion
corfu-echo-documentation 0.0 ; Echo docs for current completion option
corfu-quit-at-boundary 'insert)
(global-corfu-mode 1)
(add-hook 'minibuffer-setup-hook #'corfu-enable-in-minibuffer)
(advice-add #'lsp-completion-at-point :around #'cape-wrap-noninterruptible)) |
You need to make sure that Straight is adding that directory. See an example here, for Vertico: |
Thanks for the help @okamsn. It is very much appreciated. |
Problem
Corfu extensions like
corfu-indexed-mode
,corfu-history-mode
,corfu-popupinfo-mode
non of the command loaded into emacs.In this paragraph it meantions that we can enable it manually unless i have not understood it correctly we should be able to enable this from the commands list as modes
Emacs info
GNU Emacs 30.0.50
Development version 07a76a06f9a4 on master branch; build date 2023-02-16.
The text was updated successfully, but these errors were encountered: