Function: jinx-correct
jinx-correct is an interactive and natively compiled function defined
in jinx.el.
Signature
(jinx-correct &optional ARG)
Documentation
Correct word depending on prefix ARG.
This command dispatches to the following commands:
- jinx-correct-nearest: If prefix ARG is nil, correct nearest
misspelled word.
- jinx-correct-all: If a region is marked, or if prefix ARG
is 4, corresponding to C-u (universal-argument) pressed once,
correct all misspelled words.
- jinx-correct-word: If prefix ARG is 16, corresponding to
C-u (universal-argument) pressed twice, correct word before point.
Key Bindings
jinx-overlay-map M-$ jinx-repeat-map $
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
;;;###autoload
(defun jinx-correct (&optional arg)
"Correct word depending on prefix ARG.
This command dispatches to the following commands:
- `jinx-correct-nearest': If prefix ARG is nil, correct nearest
misspelled word.
- `jinx-correct-all': If a region is marked, or if prefix ARG
is 4, corresponding to \\[universal-argument] pressed once,
correct all misspelled words.
- `jinx-correct-word': If prefix ARG is 16, corresponding to
\\[universal-argument] pressed twice, correct word before point."
(interactive "*P")
(pcase arg
('nil (if (use-region-p) (jinx-correct-all) (jinx-correct-nearest)))
('(16) (jinx-correct-word))
(_ (jinx-correct-all))))