[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Ubuntu 20.04, company-wordfreq.el failed to suggest possible words fo

From: Hongyi Zhao
Subject: On Ubuntu 20.04, company-wordfreq.el failed to suggest possible words for writting.
Date: Sat, 19 Jun 2021 14:38:02 +0800

Dear Emacers here:

I want to have the suggests possible words as I type English, and I
noticed the wonderful notes on the using of
<> at the
following websites:


On Ubuntu 20.04, with the self compiled git master version, I
test above settings with ispell-local-dictionary set to "english", which is
corresponding to my scenario.

The following is the init file, ~/.emacs.d/, used
for the testing:

;;Bootstrap straight
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el"
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
         'silent 'inhibit-cookies)
      (goto-char (point-max))
  (load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)

 '(company-wordfreq :type git :host github :repo

(defun remove-quail-show-guidance ()
(defun remove-quail-completion ()
(defun my-company-wordfreq ()
  (advice-add 'quail-show-guidance :override #'remove-quail-show-guidance)
  (advice-add 'quail-completion :override #'remove-quail-completion)
  ;(setq ispell-local-dictionary "bengali_439")
  (setq ispell-local-dictionary "english")
  (setq-local company-backends '(company-wordfreq))
  (setq-local company-transformers nil))

The dictionary file used for my testing:

$ wc -l ~/.emacs.d/wordfreq-dicts/english.txt
50000 /home/werner/.emacs.d/wordfreq-dicts/english.txt

Start Emacs with the following command:

$ emacs -q --load ~/.emacs.d/

Then do the testing workflow with the notes

1. Enable company-wordfreq and other changes for a nice experience
using M-x en-company-wordfreq
2. TAB to get suggestions.
3. ARROW to select one.

But it doesn't work at all.

Any hints for this problem?

Assoc. Prof. Hongyi Zhao <>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

reply via email to

[Prev in Thread] Current Thread [Next in Thread]