Skip to content

Mimic flyspell-autocorrect-previous-word #30

Description

@joostkremers

One thing I really like about flyspell, which I've been using so far for spell checking, is the command flyspell-auto-correct-previous-word. Are you planning to add something similar to jinx?

In case you're not familiar with it: flyspell-auto-correct-previous-word corrects the last misspelled word before point. (Or, as the doc string says "the first misspelled word that occurs before point". 😄 Scanning backward from point, it's the first misspelled word, but it's likely the last word that you misspelled.)

This works very smoothly and unobtrusively. You don't need to move point back to the word you want to correct, and you don't need to select a correction, the most likely correction is applied automatically. The list of possible corrections is shown in the minibuffer, and you can repeat the command to select the next one if the first one isn't what you were looking for.

In most of the cases, though, the first option is the right one, so usually when I misspell a word, all I need to do is hit C-; and the error is corrected. That even works when I've already typed the next word (which happens quite a bit).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions