I do this kind of things very often (Every week) in Emacs when I restart it:
- open a shell connecting to a RSH server, execute some commands, rename the buffer
- repeat step1 for a few different remote machines
I was thinking: is there a way so that I can hard code these setups in the start-up scripts?
Here’s a function that starts a shell, ssh-es to a host, and runs a command before dropping into an interactive shell:
You can put this snippet into your
.emacsfile, followed by the specific calls you want, such as: