[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hydra 1ab885785e 29/35: hydra.el (hydra--make-defun): A
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hydra 1ab885785e 29/35: hydra.el (hydra--make-defun): Allow to speficy :idle property for a head |
Date: |
Tue, 25 Oct 2022 22:59:06 -0400 (EDT) |
branch: externals/hydra
commit 1ab885785ee4103efd96cd635cebde1474e8f50e
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
hydra.el (hydra--make-defun): Allow to speficy :idle property for a head
For example, if we want to bind a head to `universal-argument', we
likely don't want to see the whole hint just yet.
(defhydra hydra-k (:exit t :idle 0.8)
"Misc command launcher."
("f" universal-argument "C-u" :exit nil :idle 0.8)
("d" define-word-at-point "def"))
---
hydra.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hydra.el b/hydra.el
index f13f1451c8..eb8c575c17 100644
--- a/hydra.el
+++ b/hydra.el
@@ -910,7 +910,8 @@ BODY-AFTER-EXIT is added to the end of the wrapper."
,(hydra--call-interactively cmd (cadr head))
((quit error)
(message (error-message-string err)))))
- ,(if (and body-idle (eq (cadr head) 'body))
+ ,(if (or (and body-idle (eq (cadr head) 'body))
+ (setq body-idle (plist-get (nthcdr 3 head) :idle)))
`(hydra-idle-message ,body-idle ,hint ',name)
`(hydra-show-hint ,hint ',name))
(hydra-set-transient-map
- [elpa] externals/hydra d3328cab67 18/35: doc: Add full text of licences, (continued)
- [elpa] externals/hydra d3328cab67 18/35: doc: Add full text of licences, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 91f961d5d5 11/35: lv.el (lv-use-padding): New defcustom, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra e3beffdd80 17/35: lv.el (lv-window): Don't modify the buffer-list order, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra a91dd72529 06/35: lv.el (lv-window): Set header-line-format to nil, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra d38c63d3d8 14/35: hydra.el (hydra--work-around-dedicated): Unset on 26.3, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 9db28034d7 16/35: lv.el (lv-window-hook): Add, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 9936d1c6a8 09/35: lv.el (lv-window): Set tab-line-format to nil, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 5e29ad0092 19/35: lv.el (lv-window): Ensure fundamental-mode, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 370a5c613e 23/35: hydra.el (hydra-key-regex): Include "[]" in the char group, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 2dfc493ebc 25/35: Fixed message hint display from being escaped by percent, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 1ab885785e 29/35: hydra.el (hydra--make-defun): Allow to speficy :idle property for a head,
ELPA Syncer <=
- [elpa] externals/hydra 2d553787ac 30/35: hydra.el (hydra--make-defun): Refactor, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra f45e64f7e1 31/35: hydra.el (hydra--describe-key): Add and bind to "<f1> k", ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 317e1de330 34/35: Fix emacs native compilation warning, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 0c5dcf7ab9 13/35: .travis.yml: Use EVM, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 82ff12666e 04/35: hydra.el (find-func): Fix advice, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 16fa8d109e 24/35: hydra.el (defhydra): Use "__" in docstring to represent a literal "_", ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 87873d7888 26/35: Explicitly require cl-lib., ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 798c0d810f 05/35: .github/FUNDING.yml: Add, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra 74b32f3ff0 10/35: lv.el: Sience byte compiler, ELPA Syncer, 2022/10/25
- [elpa] externals/hydra d2b921d067 22/35: hydra.el (defhydra): :exit key can now also be a sexp, ELPA Syncer, 2022/10/25