I am using company-mode with (setq company-dabbrev-other-buffers 'all). Although this should search other buffers, I want that the words occurring in a particular files are made available for company-mode even when the file has not been loaded by the user.

I need something concrete enough to test, without using techniques that are net intended for the task.

  • Note that it is possible to provide a user-supplied list of words to company-mode for auto-completion via company-ispell. It may not be your exact requirement though. Aug 5, 2022 at 16:28
  • Could you provide an example how to use company-ispell for what I want to do? For what cases does the scheme fail to work as I need it?
    – Dilna
    Aug 12, 2022 at 2:32
  • You can check my usage of company-ispell from github.com/swarnendubiswas/dotemacs/blob/master/modules/…. I have a prepopulated list of words that are read from a file, and company offers them as completion candidates in addition to company-dabbrev. There is also github.com/hlissner/emacs-company-dict which prepopulates completions from existing files. You have to check whether these meet your requirements. Aug 12, 2022 at 4:34
  • Things are not very clear and would need something concrete enough to test.
    – Dilna
    Aug 12, 2022 at 4:50


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.