Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to go back to a keyboard macro from elisp?

Tags:

People also ask

How do I save a macro on my keyboard?

Save Keyboard Macro Key macro can be saved for future use. To save the macro: Alt + x name-last-kbd-macro and give it a name. Alt + x insert-kbd-macro .


I have been creating macros and saving them for later use with the following process.

  1. Create keyboard macro
  2. Edit the macro: C-x C-k C-e
  3. Name the macro: M-x name-last-kbd-macro
  4. Create an .el file then insert the macro definition: M-x insert-kbd-macro

With the lisp code saved for later, I'll load it up in my .emacs file. Perhaps it is my unfamiliarity with elisp, but the elisp code which is generated seems quite unwieldy. I much prefer the syntax in the macro editor, and I'd like to make updates and refinements to the code that I've created, so I ask:

Is there a way to take my elisp code back to a reasonable rendition in the macro editor?