kmacro-exec-ring-item, is it possible to wrap this in an elisp macro or function so its much less verbose?
In this example the only unique part is
ds( and the function name.
(fset 'delete-surround-parens (lambda (&optional arg) "" (interactive "p") (kmacro-exec-ring-item (quote ([?d ?s ?( ] 0 %d)) arg)))
Could this be wrapped so it could be written as something more simple, for eg:
(fset 'delete-surround-parens (my-kmacro-wrapper "ds("))
I'm not sure how to convert the literal string into an array to pass to
kmacro-exec-ring-item, but interested to know if its possible.