Skip to main content
edited title
Link
NickD
  • 36k
  • 4
  • 33
  • 50

how to define keybordkeyboard macro from text

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

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 keystroks.

One option is, define a keyboard macro and save it. But how can a define a keyboard macro from a text. I dont want to define a keyboard macro by typing each command letter by letter.

Any ideas?

I am using emacs 27.2 with spacemacs thanks for the help

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

Source Link
GOPS
  • 11
  • 3

how to define keybord macro from text

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 keystroks.

One option is, define a keyboard macro and save it. But how can a define a keyboard macro from a text. I dont want to define a keyboard macro by typing each command letter by letter.

Any ideas?

I am using emacs 27.2 with spacemacs thanks for the help