[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 0ecc62eb8c 07/10: Change: (hyperdrive-menu) Use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 0ecc62eb8c 07/10: Change: (hyperdrive-menu) Use :if-mode and :if-not-mode |
Date: |
Sun, 22 Oct 2023 10:01:29 -0400 (EDT) |
branch: elpa/hyperdrive
commit 0ecc62eb8c129ce341e36c62f4afc76f3767c1ae
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Change: (hyperdrive-menu) Use :if-mode and :if-not-mode
---
hyperdrive-menu.el | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/hyperdrive-menu.el b/hyperdrive-menu.el
index 760c2293e5..2bd437e88f 100644
--- a/hyperdrive-menu.el
+++ b/hyperdrive-menu.el
@@ -137,8 +137,7 @@
:inapt-if-not (lambda ()
(hyperdrive-parent (hyperdrive-menu--entry))))
("s" "Sort" hyperdrive-dir-sort
- :if (lambda ()
- (eq major-mode 'hyperdrive-dir-mode))
+ :if-mode hyperdrive-dir-mode
:transient t)
("j" "Jump" imenu)
;; TODO: Combine previous and next commands on the same line?
@@ -147,29 +146,24 @@
(interactive)
(hyperdrive-ewoc-previous)
(hyperdrive-menu (hyperdrive-menu--entry)))
- :if (lambda ()
- (eq major-mode 'hyperdrive-dir-mode))
+ :if-mode hyperdrive-dir-mode
:transient t)
("n" "Next" (lambda ()
(interactive)
(hyperdrive-ewoc-next)
(hyperdrive-menu (hyperdrive-menu--entry)))
- :if (lambda ()
- (eq major-mode 'hyperdrive-dir-mode))
+ :if-mode hyperdrive-dir-mode
:transient t)
("w" "Copy URL" hyperdrive-copy-url
- :if (lambda ()
- (not (eq major-mode 'hyperdrive-dir-mode))))
+ :if-not-mode hyperdrive-dir-mode)
("D" "Delete" hyperdrive-delete
- :if (lambda ()
- (not (eq major-mode 'hyperdrive-dir-mode)))
+ :if-not-mode hyperdrive-dir-mode
:inapt-if (lambda ()
(pcase-let (((cl-struct hyperdrive-entry hyperdrive version)
(hyperdrive-menu--entry)))
(or version (not (hyperdrive-writablep hyperdrive))))))
("d" "Download" hyperdrive-download
- :if (lambda ()
- (not (eq major-mode 'hyperdrive-dir-mode))))]
+ :if-not-mode hyperdrive-dir-mode)]
;; TODO: Consider adding a defcustom to hide the "Selected" and
;; "Current" groups when in a directory buffer.
[;; Selected
- [nongnu] elpa/hyperdrive updated (dbf3d5063f -> fcb5512706), ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive 0ecc62eb8c 07/10: Change: (hyperdrive-menu) Use :if-mode and :if-not-mode,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 6d23e595b5 09/10: Add/Change: (-mirror-read-prediate) New function, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive 6050e4f60c 01/10: Docs: Add a comma, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive c3d2d1e2ed 03/10: Fix: (hyperdrive-time-greater-p) Don't return t if equal, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive 2f5ff56f5a 06/10: Change: (hyperdrive-menu--entry) New convenience function, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive 55d2b61510 05/10: Fix: (hyperdrive-menu) Fix a fixme, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive 3b54e0b34c 08/10: Fix: (hyperdrive-mirror) Require match when reading named function, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive cf3fec65f6 02/10: Fix: Fix code section outline level, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive a7603ced15 04/10: Fix: (hyperdrive-menu) Fix indentation, ELPA Syncer, 2023/10/22
- [nongnu] elpa/hyperdrive fcb5512706 10/10: Change: (-mirror-read-prediate) Cosmetics, ELPA Syncer, 2023/10/22