M-x name-last-kbd-macro
which will bind the last macro you defined into a named function for the rest of the session.
M-x name-last-kbd-macro
which will bind the last macro you defined into a named function for the rest of the session.