emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ivy-hydra f40a465 117/395: ivy.el (ivy-avy-style): New


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra f40a465 117/395: ivy.el (ivy-avy-style): New defcustom
Date: Thu, 25 Feb 2021 08:31:44 -0500 (EST)

branch: externals/ivy-hydra
commit f40a46590cdde9f6da3643ded89fa776f63d9c7e
Author: Yanghao Xie <yhaoxie@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]