I am using shell inside Emacs. Often I need to execute a series of shell commands around ~40 chars, as of now I copy all the commands together and paste it from documentation. Is there any way to save all these commands in Emacs and execute in few key strokes.
One option is, define a keyboard macro and save it. But how can a define a keyboard macro from a text. I don't want to define a keyboard macro by typing each command letter by letter.
Any ideas?
I am using Emacs 27.2 with spacemacs
registers
)? Do you need to save these definitions for use in another session?