Is there any way to add my own completion to an (interactive) elisp function? Ideally, I’d like to pass it a list of strings that it would tab-complete from. I know that using (interactive "D"), (interactive "F") or (interactive "b") give you completion for directories, files and buffer-names respectively, but what about more general inputs?
Is there any way to add my own completion to an (interactive) elisp function?
Share
The argument to
interactiveneed not be a string; if it isn’t, it’s evaluated to get the list of arguments to pass to the function. Therefore, you can do something like this: