kadircancetin / typo-suggest

Don't make typos with the help of helm and company

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://s7.gifyu.com/images/typo-suggest.gif

(Gif is older version of typo-suggest but idea is same)

This package is a datamuse api or ispell backends for fixing typos, getting suggestions and finding the correct word with helm or company-mode.

Installation

https://melpa.org/packages/typo-suggest-badge.svg

Package is avalible in melpa. So you can install directly M-x package-install, typo-suggest or if you use use-package (use-package typo-suggest).

Usage

Use M-x typo-suggest-helm for helm completion.

For company mode backend, type M-x typo-suggest-company-mode. It will activate or deactivate typo-suggest back-end.

I don’t prefer to use it with hook but if you want it:

(add-hook 'org-mode-hook 'typo-suggest-company-mode)

Customization

You can change the backends with:

(setq typo-suggest-default-search-method 'datamuse) ;; beter but online
(setq typo-suggest-default-search-method 'ispell)   ;; not good but local if you installed ispell

typo-suggest-suggestion-count is for the count of suggestions from backends. You can upper or lower value for the your choice. typo-suggest-timeout is for the remote server timeout for datamuse backend. If your connection is unstable, you may want to increase this value.

(setq typo-suggest-suggestion-count 20)
(setq typo-suggest-timeout 1)

Common Issues

Company mode or helm mode is not running asyncronous. Helm is not frustrating but if the company-idle-delay varible is so low, company mode is not fast on datamuse backend.

Road Map

  • [X] Google translate integration.
  • [ ] Ivy integration.

About

Don't make typos with the help of helm and company

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%