Emacs as a window manager
As a developer I find myself having to connect to multiple machines several times during the day. I wanted to automate the process and discovered Expect - a tool for automation of interactive applications.
I started using Expect to automate my ssh sessions. And while Tmux is very good at managing multiple sessions I’ve found that for me Emacs and multi-term.el is the best multi session window manager out there.
First I create Expect script to automate the login process:
Then I create my login functions in emacs:
After that I create functions to login to different machines:
This setup works very well. It helps me in automating the login process and shows a descriptive window title for each session in Emacs.