How can I generate a keyboard macro in my Emacs source file?

I often define a specific keyboard macro, so I thought it might be convenient if it is automatically available every time Emacs loads.

How can i do this?

+3
source share
1 answer

How about saving keyboard macros in a manual?

C-x C-k n
    Give a command name (for the duration of the Emacs session) to the most recently defined keyboard macro (kmacro-name-last-macro).
C-x C-k b
    Bind the most recently defined keyboard macro to a key sequence (for the duration of the session) (kmacro-bind-to-key).
M-x insert-kbd-macro
    Insert in the buffer a keyboard macro definition, as Lisp code.
+5
source

All Articles