From 7e5ce9615154ffe45551ea04c949fa0245e35a87 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Sun, 31 Mar 2024 15:19:13 -0400 Subject: [PATCH] [org] Enable SPC a o / key binding whenever helm-org-rifle not used This enables the key binding when the completion layer is compleseus, for example. --- layers/+emacs/org/packages.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/+emacs/org/packages.el b/layers/+emacs/org/packages.el index 8c2289178391..c37005287222 100644 --- a/layers/+emacs/org/packages.el +++ b/layers/+emacs/org/packages.el @@ -399,7 +399,9 @@ Will work on both org-mode and any mode that accepts plain html." "aof" "feeds" "aoC" (org-clocks-prefix)) ;; org-agenda - (when (configuration-layer/layer-used-p 'ivy) + (unless (when-let ((pkg (configuration-layer/get-package 'helm-org-rifle))) + ;; `configuration-layer/package-used-p' doesn't check :toggle status + (cfgl-package-used-p pkg)) (spacemacs/set-leader-keys "ao/" 'org-occur-in-agenda-files)) (spacemacs/set-leader-keys "ao#" 'org-agenda-list-stuck-projects