4

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?

abo-abo
  • 20,038
  • 3
  • 50
  • 71

1 Answers1

2

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.

pmr
  • 58,701
  • 10
  • 113
  • 156
Peter
  • 103
  • 1
  • 8