[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy 8b5cb11 1/2: ivy-configure: add :sort-matches-fn
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy 8b5cb11 1/2: ivy-configure: add :sort-matches-fn |
Date: |
Thu, 6 May 2021 17:59:56 -0400 (EDT) |
branch: externals/ivy
commit 8b5cb11d5e9ce3e947a1d96855db66f828e7faca
Author: Daanturo <daanturo@gmail.com>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
ivy-configure: add :sort-matches-fn
* ivy.el (ivy-configure): Accept :sort-matches-fn key for setting
`ivy-sort-matches-functions-alist` (#2860).
---
ivy.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ivy.el b/ivy.el
index 8fc0e31..256aeaa 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1894,6 +1894,7 @@ The child caller inherits and can override the settings
of the parent.")
unwind-fn
index-fn
sort-fn
+ sort-matches-fn
format-fn
display-fn
display-transformer-fn
@@ -1921,6 +1922,8 @@ The child caller inherits and can override the settings
of the parent.")
(ivy--alist-set 'ivy-index-functions-alist caller index-fn))
(when sort-fn
(ivy--alist-set 'ivy-sort-functions-alist caller sort-fn))
+ (when sort-matches-fn
+ (ivy--alist-set 'ivy-sort-matches-functions-alist caller sort-matches-fn))
(when format-fn
(ivy--alist-set 'ivy-format-functions-alist caller format-fn))
(when display-fn
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/ivy 8b5cb11 1/2: ivy-configure: add :sort-matches-fn,
Basil L. Contovounesios <=