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

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

[elpa] master 0c8cfe8 106/399: ivy-hydra.el (ivy-dispatching-done-idle):


From: Oleh Krehel
Subject: [elpa] master 0c8cfe8 106/399: ivy-hydra.el (ivy-dispatching-done-idle): Add
Date: Sat, 20 Jul 2019 14:56:58 -0400 (EDT)

branch: master
commit 0c8cfe80ef251161a703014bee24c070d4049f27
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-hydra.el (ivy-dispatching-done-idle): Add
---
 ivy-hydra.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy-hydra.el b/ivy-hydra.el
index 89d8b81..3bbfe8b 100644
--- a/ivy-hydra.el
+++ b/ivy-hydra.el
@@ -88,6 +88,9 @@ _h_ ^+^ _l_ | _d_one      ^ ^  | _o_ops   | _M_: matcher 
%-5s(ivy--matcher-desc)
 (defvar ivy-dispatching-done-columns 2
   "Number of columns to use if the hint does not fit on one line.")
 
+(defvar ivy-dispatching-done-idle nil
+  "When non-nil, the hint will be delayed by this many seconds.")
+
 (defun ivy-dispatching-done-hydra ()
   "Select one of the available actions and call `ivy-done'."
   (interactive)
@@ -103,7 +106,7 @@ _h_ ^+^ _l_ | _d_one      ^ ^  | _o_ops   | _M_: matcher 
%-5s(ivy--matcher-desc)
         (ivy-done)
       (funcall
        (eval
-        `(defhydra ivy-read-action (:color teal :columns ,n-columns)
+        `(defhydra ivy-read-action (:color teal :columns ,n-columns :idle 
,ivy-dispatching-done-idle)
            "action"
            ,@(mapcar (lambda (x)
                        (list (nth 0 x)



reply via email to

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