Skip to content

mrBliss/flyspell-correct

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flyspell-correct

http://melpa.org/packages/flyspell-correct-badge.svg https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg

Correcting words with flyspell via custom interface.

Read intro post

To use set the value of flyspell-correct-interface to any of available interfaces (predefined are flyspell-correct-ivy, flyspell-correct-helm and flyspell-correct-popup). For example,

(setq flyspell-correct-interface 'flyspell-correct-ivy)

After that, just call flyspell-correct-word-generic with cursor on misspelled word. You can also bind it by adding this to your init.el file:

(define-key flyspell-mode-map (kbd "C-;") 'flyspell-correct-word-generic)

When invoked, it will show the list of corrections suggested by Flyspell. ivy, helm and popup also allows to save unknown word to your dictionary, accept this spelling in current buffer or whole session.

Custom interfaces

One can easily implement custom interface for flyspell-correct-word-generic. It has to be function that takes two arguments - candidates and misspelled word. It has to return either replacement word or (command, word) tuple that will be passed to flyspell-do-correct. Check flyspell-correct-popup for example of interface that uses this feature.

Screenshots

Ivy interface

images/screenshot-ivy-1.png

images/screenshot-ivy-2.png

Popup interface

images/screenshot-popup.png

Helm interface

images/screenshot-helm.png

Acknowledgments

This package is available thanks to these people:

Known problems

Package requirements are not properly set, since depending on users choice this package might require helm or ivy or popup or non of them.

About

Correcting words with flyspell via custom interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Emacs Lisp 100.0%