wcheck-mode icon indicating copy to clipboard operation
wcheck-mode copied to clipboard

[request] flyspell-correct-wrapper function in Wcheck

Open gspe opened this issue 3 years ago • 0 comments

Hi, I'm trying Wcheck and I really like it.

But there is a function that i miss from flyspell-correct -> flyspell-correct-wrapper

;; In most cases the last function is the most convenient, so don't forget to ;; bind it. ;; ;; (define-key flyspell-mode-map (kbd "C-;") 'flyspell-correct-wrapper) ;; ;; When invoked, it will show the list of corrections suggested by Flyspell.

With this function is very simple to correct misspelled word, just it C-; until the correct word is displayed.

So I'd like to ask if is it possible to have a similar function with wcheck, a sort of wrapper around wcheck-jump-backword and wcheck-actions .

EDIT: After some test I ended with this function that does 90% of what I wanted, the only thing missing is the cycling through the candidates

;;;###autoload
(defun wcheck-actions-wrapper()
  (interactive)
  (save-excursion
    (wcheck-jump-backward)
    (wcheck-actions (point))))

gspe avatar Jan 12 '21 15:01 gspe