kmacro-start-macro

kmacro-start-macro is an interactive autoloaded compiled Lisp function in `kmacro.el'.

It is bound to C-x (, C-x C-k C-s, C-x C-k s.

(kmacro-start-macro ARG)

Record subsequent keyboard input, defining a keyboard macro.
The commands are recorded even as they are executed.
Use C-x ) to finish recording and make the macro available.
Use C-x e to execute the macro.

Non-nil arg (prefix arg) means append to last macro defined.

With C-u prefix, append to last keyboard macro
defined. Depending on `kmacro-execute-before-append', this may begin
by re-executing the last macro as if you typed it again.

Otherwise, it sets `kmacro-counter' to ARG or 0 if missing before
defining the macro.

Use C-x C-k TAB to insert (and increment) the macro counter.
The counter value can be set or modified via C-x C-k C-c and C-x C-k C-a.
The format of the counter can be modified via C-x C-k C-f.

Use C-x C-k n to give it a permanent name.
Use C-x C-k b to bind it to a key sequence.