branch: externals/ivy-hydra
commit f40a46590cdde9f6da3643ded89fa776f63d9c7e
Author: Yanghao Xie <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy.el (ivy-avy-style): New defcustom
Fixes #2417
---
ivy.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/ivy.el b/ivy.el
index 288c974..0e92892 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1709,8 +1709,18 @@ This string is inserted into the minibuffer."
(const :tag "Full line" ivy-format-function-line)
(function :tag "Custom function"))))
+(defcustom ivy-avy-style 'pre
+ "The `avy-style' setting for `ivy-avy'."
+ :type '(choice
+ (const :tag "Pre" pre)
+ (const :tag "At" at)
+ (const :tag "At Full" at-full)
+ (const :tag "Post" post)
+ (const :tag "De Bruijn" de-bruijn)
+ (const :tag "Words" words)))
+
(eval-after-load 'avy
- '(add-to-list 'avy-styles-alist '(ivy-avy . pre)))
+ '(add-to-list 'avy-styles-alist `(ivy-avy . ,ivy-avy-style)))
(defun ivy--avy-candidates ()
(let (candidates)