[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
<https://github.com/johannes-mueller/company-wordfreq.el> at the
following websites:
<https://github.com/md-arif-shaikh/.emacs.d/blob/main/emacs.org#writing-in-bangla-using-company-wordfreq>
<https://md-arif-shaikh.github.io/2021/05/27/typing-bangla-in-emacs.html>
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/init.company-wordfreq.el, used
for the testing:
```emacs-lisp
;;Bootstrap straight
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el"
user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(setq straight-use-package-by-default t)
(straight-use-package
'(company-wordfreq :type git :host github :repo
"johannes-mueller/company-wordfreq.el"))
(defun remove-quail-show-guidance ()
nil)
(defun remove-quail-completion ()
(quail-select-current))
(defun my-company-wordfreq ()
(interactive)
(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/init.company-wordfreq.el
Then do the testing workflow with the notes
[here](https://md-arif-shaikh.github.io/2021/05/27/typing-bangla-in-emacs.html):
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?
Regards,
HY
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- On Ubuntu 20.04, company-wordfreq.el failed to suggest possible words for writting.,
Hongyi Zhao <=