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

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

[elpa] externals/mct 985900ae43 1/2: Add mct-avy-embark-act command


From: ELPA Syncer
Subject: [elpa] externals/mct 985900ae43 1/2: Add mct-avy-embark-act command
Date: Sat, 19 Mar 2022 01:57:40 -0400 (EDT)

branch: externals/mct
commit 985900ae4391f2592f943d18a11133e9b73f5274
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Add mct-avy-embark-act command
---
 extensions/mct-avy.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/extensions/mct-avy.el b/extensions/mct-avy.el
index 8cbe1af3ec..11846cb5a4 100644
--- a/extensions/mct-avy.el
+++ b/extensions/mct-avy.el
@@ -81,5 +81,14 @@ completion where the minibuffer is not active."
   (interactive)
   (mct-avy-choose #'choose-completion))
 
+;;;###autoload
+(defun mct-avy-embark-act ()
+  "Use Avy to run `embark-act' on candidate.
+Requires the `embark' package."
+  (interactive)
+  (if (require 'embark nil t)
+      (mct-avy-choose #'embark-act)
+    (user-error "The `embark' package has not been loaded")))
+
 (provide 'mct-avy)
 ;;; mct-avy.el ends here



reply via email to

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