johannes-mueller / company-wordfreq.el Goto Github PK
View Code? Open in Web Editor NEWA company-backend for human language texts based on word frequency dictionaries.
License: GNU General Public License v3.0
A company-backend for human language texts based on word frequency dictionaries.
License: GNU General Public License v3.0
On Ubuntu 20.04, I try the suggested method given by you here and the method represented here. But none of them worked on my case in my environment. See my following init file, ~/.emacs.d/init.company-wordfreq.el
, used for the testing:
;;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"))
; Method 1, based on the method describe at:
;https://md-arif-shaikh.github.io/2021/05/27/typing-bangla-in-emacs.html
(defun remove-quail-show-guidance ()
nil)
(defun remove-quail-completion ()
(quail-select-current))
(defun en-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 "english")
(setq-local company-backends '(company-wordfreq))
(setq-local company-transformers nil))
; Method 2, based on your official guidance:
;(setq ispell-local-dictionary "english")
;(add-hook 'text-mode-hook (lambda ()
; (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
The testing workflow is described below according to the notes here:
british
using C-\
company-wordfreq
and other changes for a nice experience using M-x en-company-wordfreq
TAB
to get suggestions.ARROW
to select one.But it doesn't work at all.
Any hints for this problem?
Regards,
HY
GPL-2.0-only
is not compatible with the license used by Emacs, GPL-3.0-or-later
. To allow us to continue to distribute this package on Melpa, you would have to update to something like GPL-3.0-only
or GPL-2.0-or-later
.
Please update both the LICENSE
file (or similar) and update/add a library header specifying the same license like:
;; SPDX-License-Identifier: GPL-3.0-or-later
/cc @riscy
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.