Reputation: 20362
As I'm using M-x ispell to check LaTeX code I use SPC to skip a lot of entries that should not be corrected. But then I sometimes skip an actual misspelled word. What's the key to go back with ispell to previous word?
Upvotes: 4
Views: 590
Reputation: 103
I checked the source code of ispell.el, and unfortunately, there seems to be no key-binding for this (the keys are actually hardcoded in the function ispell-command-loop
). As a quick hack, if you don't mind your buffer-local mark-ring to be cluttered, you could do something like this:
(defadvice ispell-command-loop (after leave-breadcrumbs activate)
"Leave a trail in the mark-ring when waiting for user input"
(push-mark (point) t))
Then you can always go back to previous errors with C-u C-SPC. Alternatively, you can create your own mark-ring for this function.
Upvotes: 2