Giter VIP home page Giter VIP logo

company-wordfreq.el's People

Contributors

johannes-mueller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

company-wordfreq.el's Issues

On Ubuntu 20.04, `company-wordfreq.el` failed to suggest possible words for writting.

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:

  1. Change the input-method to british using C-\
  2. Enable company-wordfreq and other changes for a nice experience using M-x en-company-wordfreq
  3. TAB to get suggestions.
  4. ARROW to select one.

But it doesn't work at all.

Any hints for this problem?

Regards,
HY

Please use a license that is compatible with Emacs' GPL-3.0-or-later

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.