I'd like to implement a command that types the first few characters into an existing command and lets me type the rest.
For example, a variant of icicle-execute-extended-command
that starts with "icicle-" already entered.
I have tried:
- keyboard macros
- fail (even on simple things like
M-x i c i c l e s
) for no apparent reason.
- fail (even on simple things like
- functions
- calling
icicle-execute-extended-command
block the command sequence
- calling
How would I go about doing this in a generalized manner?
Nice question. Here's something generic you can try:
And here's a refactoring: