I am using flymake with pyflakes to check my python code and flyspell to check my strings and comments. I want to have one function which will go to the next error, or will display information about the error if currently at an error. How would I write this function?
Share
This code provides functionality which jumps you to the next error, and if it’s a flymake error, displays information for it, if it’s a flyspell error, it corrects it for you. If you don’t want the auto-correction, un-comment the line that calls
'my-flyspell-messageand remove the line before that which calls'flyspell-auto-correct-word– and you’ll just get a message about the word being misspelled.The first line binds this to the keybinding C-c n. For more information on binding keys, see the info page Key Bindings.