Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of interactive functions in Elisp/Emacs

Tags:

emacs

elisp

I have a bunch of my interactive functions with a prefix, say *zb/" (e.g. "zb/create-temp-buffer"). I am a bit tired every time to type in M-x interaction this prefix of a command I like to run.

To automate this I'd like to retrieve a list of all my interactive functions and show them through ido-completing-read (btw, possibly there are other alternative and modern ways to create input with predefined items and autocompletion?). But I did not manage to find how to retrieve a such list. Could you please give me a cue how to achieve this?

List of all available interactive functions will be enough; to filter is not an issue.

Thanks.

like image 744
zweibaranov Avatar asked Nov 01 '25 01:11

zweibaranov


1 Answers

You can use this function for selection

(defun eab/select-zb/ ()
  (interactive)
  (call-interactively
   (intern
    (ido-completing-read "M-x zb/"
             (mapcar 'symbol-name (apropos-internal "^zb/"))))))
like image 150
artscan Avatar answered Nov 04 '25 05:11

artscan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!