I want to implement a custom M-x
(execute-extended-command
).
This time real skeleton-coding (crying)
(defun gbq-extended-command (inst)
(interactive "sgbq-X ")
(cond ((equal inst "eob") (end-of-buffer)))
;; BODY of function
)
in this function, I want completion instruction. for example, if call the function, like M-x
, when I type eo
, Completion from eo
to eob
.
but I have no idea how.
C-<end>
andC-<begin>
? If you want to have shortcuts for existing commands consider alsodefalias
. – Tobias Mar 26 '19 at 11:26