I am using shell inside emacsEmacs. 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 emacsEmacs and execute in few keystrokskey strokes.
One option is, define a keyboard macro and save it. But how can a define a keyboard macro from a text. I dontdon't want to define a keyboard macro by typing each command letter by letter.
Any ideas?
I am using emacsEmacs 27.2 with spacemacs thanks for the help