mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 13:33:03 +00:00
parent
b522bfe320
commit
20ecb9bed6
4
avy.el
4
avy.el
@ -540,12 +540,14 @@ Set `avy-style' according to COMMMAND as well."
|
|||||||
"Auto correct word at PT."
|
"Auto correct word at PT."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char pt)
|
(goto-char pt)
|
||||||
|
(if (bound-and-true-p flyspell-mode)
|
||||||
|
(flyspell-correct-word-before-point)
|
||||||
(if (looking-at-p "\\b")
|
(if (looking-at-p "\\b")
|
||||||
(ispell-word)
|
(ispell-word)
|
||||||
(progn
|
(progn
|
||||||
(backward-word)
|
(backward-word)
|
||||||
(when (looking-at-p "\\b")
|
(when (looking-at-p "\\b")
|
||||||
(ispell-word))))))
|
(ispell-word)))))))
|
||||||
|
|
||||||
(defun avy--process (candidates overlay-fn)
|
(defun avy--process (candidates overlay-fn)
|
||||||
"Select one of CANDIDATES using `avy-read'.
|
"Select one of CANDIDATES using `avy-read'.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user