branch: externals/jinx commit a06e599c87f0f52ac8d6aa606feda8d304caf33b Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
jinx-next/previous: Add command-modes --- jinx.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jinx.el b/jinx.el index 4c493be18c..b0e57f5cf2 100644 --- a/jinx.el +++ b/jinx.el @@ -871,7 +871,6 @@ If prefix argument ALL non-nil correct all misspellings." (delete-minibuffer-contents) (insert word) (exit-minibuffer))) -(put #'jinx-correct-select 'completion-predicate #'ignore) (defun jinx-next (n) "Go to to Nth next misspelling." @@ -941,5 +940,9 @@ If prefix argument ALL non-nil correct all misspellings." (apply #'derived-mode-p jinx-include-modes)) (jinx-mode 1))) +(put #'jinx-correct-select 'completion-predicate #'ignore) +(put #'jinx-next 'command-modes '(jinx-mode)) +(put #'jinx-previous 'command-modes '(jinx-mode)) + (provide 'jinx) ;;; jinx.el ends here