summaryrefslogtreecommitdiff
path: root/helm-command.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2016-03-26 10:53:01 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2016-03-26 10:53:01 +0100
commitc3ef65151f436b9e4d0f6c8553cb8ea1729f54ff (patch)
tree994716f966ace571002f63262f9d2d449021e681 /helm-command.el
parent97e8f9793fd32705784c53fb08a287a0c9c411d7 (diff)
Add :actions keyword to helm-comp-read and use it in helm-M-x (#1448).
* helm-command.el (helm-M-x-read-extended-command): Add actions with new keyword. * helm-elisp.el (helm-apropos): Allow passing default arg for non--interactive calls. * helm-mode.el (helm-comp-read): Add actions keyword.
Diffstat (limited to 'helm-command.el')
-rw-r--r--helm-command.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/helm-command.el b/helm-command.el
index d3614fbf..00a24313 100644
--- a/helm-command.el
+++ b/helm-command.el
@@ -213,6 +213,10 @@ than the default which is OBARRAY."
:must-match t
:fuzzy helm-M-x-fuzzy-match
:nomark t
+ :actions (helm-make-actions
+ "Execute command" 'identity
+ "Switch to apropos" (lambda (candidate)
+ (helm-apropos candidate)))
:candidates-in-buffer t
:fc-transformer 'helm-M-x-transformer
:hist-fc-transformer 'helm-M-x-transformer-hist))