[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/avy 8686845ed9 01/31: avy.el (avy-flyspell-correct-func
From: |
ELPA Syncer |
Subject: |
[elpa] externals/avy 8686845ed9 01/31: avy.el (avy-flyspell-correct-function): Add |
Date: |
Mon, 13 Feb 2023 21:57:24 -0500 (EST) |
branch: externals/avy
commit 8686845ed907b986ac7c95169b6396300ee114c2
Author: Yanghao Xie <yhaoxie@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
avy.el (avy-flyspell-correct-function): Add
Fixes #273
---
avy.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/avy.el b/avy.el
index 25d89e94fe..0055fcb88f 100644
--- a/avy.el
+++ b/avy.el
@@ -748,6 +748,11 @@ Set `avy-style' according to COMMMAND as well."
(declare-function flyspell-correct-word-before-point "flyspell")
+(defcustom avy-flyspell-correct-function #'flyspell-correct-word-before-point
+ "Function called to correct word by `avy-action-ispell' when
+`flyspell-mode' is enabled."
+ :type 'function)
+
(defun avy-action-ispell (pt)
"Auto correct word at PT."
(save-excursion
@@ -758,7 +763,7 @@ Set `avy-style' according to COMMMAND as well."
(line-beginning-position)
(line-end-position)))
((bound-and-true-p flyspell-mode)
- (flyspell-correct-word-before-point))
+ (funcall avy-flyspell-correct-function))
((looking-at-p "\\b")
(ispell-word))
(t
- [elpa] externals/avy 034de4c0e9 09/31: avy.el: Add -above and -below versions of avy-goto-whitespace-end, (continued)
- [elpa] externals/avy 034de4c0e9 09/31: avy.el: Add -above and -below versions of avy-goto-whitespace-end, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 01a311ca6a 07/31: avy.el: Get rid of magic char numbers, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 509471bad0 19/31: avy.el (avy-text): Store the avy-goto-char-timer text, ELPA Syncer, 2023/02/13
- [elpa] externals/avy bbf1e7339e 24/31: avy.el (avy-order-closest): Work with avy-goto-line, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 9ae059deaa 04/31: .github/FUNDING.yml: Add, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 343fc42de1 05/31: avy.el (avy-process): Return nil on "C-g" and "ESC", ELPA Syncer, 2023/02/13
- [elpa] externals/avy f91ae613a8 02/31: avy.el (avy-goto-line): Call avy-action-goto only when avy-action is not set, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 87394c9a88 13/31: avy.el (avy-isearch): Return relevant result, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 5127f993f9 10/31: avy.el (avy-process): Restart on fail for avy-style 'words, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 66886e265c 06/31: avy.el (avy-read): Don't call `avy--key-to-char' too early, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 8686845ed9 01/31: avy.el (avy-flyspell-correct-function): Add,
ELPA Syncer <=
- [elpa] externals/avy 27d1af3fa6 08/31: avy.el (avy-goto-whitespace-end): New command, ELPA Syncer, 2023/02/13
- [elpa] externals/avy cf95ba9582 15/31: avy.el (avy-with): Fix typo in doc-string, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 954774d6e9 17/31: avy.el (avy-action-yank-line): Add and bind to "Y", ELPA Syncer, 2023/02/13
- [elpa] externals/avy 3bf83140fa 16/31: avy.el (avy-goto-line): Can cancel with ESC, ELPA Syncer, 2023/02/13
- [elpa] externals/avy aa35412375 18/31: avy.el (avy--line-cands): Don't set temporary-goal-column, ELPA Syncer, 2023/02/13
- [elpa] externals/avy f34ff764aa 22/31: avy.el (avy-escape-chars): Add defcustom, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 2dde8b71a0 23/31: avy.el (avy-process): Add autoload, ELPA Syncer, 2023/02/13
- [elpa] externals/avy e92cb37457 25/31: avy.el (avy-transpose-lines-in-region): Add, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 6b53033883 26/31: Add GNU ELPA badge to README.md, ELPA Syncer, 2023/02/13
- [elpa] externals/avy 955c8dedd6 30/31: avy.el (avy--overlay): Avoid error on empty string, ELPA Syncer, 2023/02/13