The name lasts as long as your Emacs session. You need to name them, store them in a file, and then load them for your next session.
I pulled this from the Emacs Info file: * Once a macro has a command name, you can save its definition in a* > *file. Then it can be used in another editing session. First, visit the* > *file you want to save the definition in. Then use this command:* > > * M-x insert-kbd-macro <RET> MACRONAME <RET>* > > *This inserts some Lisp code that, when executed later, will define the* > *same macro with the same definition it has now. (You don’t need to* > *understand Lisp code to do this, because ‘insert-kbd-macro’ writes the* > *Lisp code for you.) Then save the file. You can load the file later* > *with ‘load-file’ (*note Lisp Libraries::). If the file you save in is* > *your init file ‘~/.emacs’ (*note Init File::) then the macro will be* > *defined each time you run Emacs.* > Johnathan On Fri, Jun 15, 2018 at 9:33 AM, Rich Shepard <[email protected]> wrote: > I know how to create, name, and run emacs keyboard macros but haven't > found a reference that tells me how long that named macro is available. Are > they deleted when I leave emacs, or are they stored and can be run during a > later session? > > Rich > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
