I've managed to setup
company-ispell which seems to work for small files, but fails for a dump of the aspell dictionary.
This works when pressing
C-SPC without any existing text before the cursor.
But when there is some text e.g.
wheel, there is no completion found.
However when there is no prefix, there are multiple words starting with
wheel in the list.
(use-package company :commands (company-complete-common)) (global-set-key (kbd "C-SPC") 'company-complete-common) (add-hook 'after-change-major-mode-hook (lambda () (when (derived-mode-p 'text-mode) (company-mode) (make-local-variable 'company-backends) ;; company-ispell is the plugin to complete words (setq company-backends (list 'company-ispell)) (setq ispell-complete-word-dict (expand-file-name (concat user-emacs-directory "aspell_words.txt"))) (when (and ispell-complete-word-dict (not (file-exists-p ispell-complete-word-dict))) (shell-command (concat "aspell -d en_US dump master > " ispell-complete-word-dict))))))
*Message* buffer, there is output.
Starting "look" process... No completion found
Checking the process monitor, there aren't any hanging background processes.
How can company-mode's
company-complete-common be used to complete dictionary words?