Louis Pan <
lo...@pan.me> writes:
> Hi, I'm wondering if it is possible to bind a key to 'helm-M-x with
> some initial input.
>
> Use case: eg. (global-set-key (kbd "M-p") (apply-partially
> #'helm-M-x-with "helm-projectile"))
>
> I'd like to bind a key to "helm-projectile" so the one key brings up
> helm with an already narrowed down list of candidates.
I don't know of a built-in solution. I would try with
`minibuffer-with-setup-hook', like in
#+begin_src emacs-lisp
(minibuffer-with-setup-hook
(lambda () (insert "helm-"))
(helm-M-x-read-extended-command))
#+end_src
Regards,
Michael.