How can I get corfu to autcomplete words in Portuguese? #149
Replies: 1 comment
|
Corfu displays completion candidates; the word list comes from a completion-at-point function. Since you already have a Portuguese list, Cape's Save the list as UTF-8, one word per line. With Cape installed, a buffer-local setup for Org could look like this: (after! cape
(add-hook 'org-mode-hook
(lambda ()
(setq-local cape-dict-file
(expand-file-name "~/words/pt-BR.txt"))
(add-hook 'completion-at-point-functions
#'cape-dict nil t))))The local hook preserves other completion sources. If an existing source wins before the dictionary is consulted, try
Sources: https://github.com/minad/cape and https://github.com/minad/corfu |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I noticed that corfu will complete words in English on Org Mode. I would like to give it a wordlist in Brazilian Portuguese to complete. How can I do that? I already have the word list that I will clean up.
All reactions