Tristan401 · 2022-11-28 09:56
Howdy. I'm trying to use `corfu-doc`, and I keep getting a warning that says it's been merged into corfu; However, I can't seem to find any details about how to use it in the corfu documentation.
Does anyone know how to make the switch?
edit: Thanks for the solutions! This is what ended up working:
```
(use-package corfu
:straight (corfu :files (:defaults "extensions/*")
:includes (corfu-info corfu-history))
:config
(setq corfu-popupinfo-delay 0)
:init
(global-corfu-mode)
(corfu-popupinfo-mode))
```
AdBeneficial5555 · 2022-11-28 10:17
Instead of (corfu-doc-mode) do (corfu-popupinfo-mode), and things should behave as they did before!
I also ended up tweaking popupinfo delay to match the old behaviour:
https://github.com/Giedriusj1/emacs-config/commit/bdbf11f99b71c15ee3e7a1fe3864949522f77c1d
churchzebra · 2022-11-28 10:44
Just add `extensions/*.el` to load-path, if you're using Doom, change `package.el` like this:
```lisp
(package! corfu
:recipe (:files (:defaults "extensions/*.el")))
```
PS: `corfu-doc` is renamed to `corfu-popupinfo`
PawelKobojek · 2022-11-28 11:59
Any idea how to use it `straight.el`? It seems it doesn't load extensions folder by default
Edit: Nvm, I found it. You just need to add the `:straight` config line like that:
```elisp
(use-package corfu
:straight (:files (:defaults "extensions/*"))
...
```
churchzebra · 2022-11-28 12:06
something like this:
```lisp
(use-package corfu
:straight (:files (:defaults "extensions/*.el"))
```
You can check this guy's config [file](https://github.com/FilipCon/dotemacs/blob/a3dddc54da248b897c43a7f0d8644167e638396b/config/completion.el) or [this](https://github.com/ilyaw39/.emacs.d/blob/2dbca2776812d6b494b6cd1c2fca2eb870ede45a/lisp/init-corfu.el)