I recorded a screencast tonight demonstrating my current setup where I can edit a file on a host I am ssh’d to in my local Emacs instance.
I got the idea from Using a local emacs+tramp as your EDITOR on remote servers with SSH and emacsclient, but had to make a few modifications to work with my local set up.
For those who are unfamiliar, Tramp Mode (also documented here) is an awesome Emacs mode that lets you transparently edit files using protocols like ssh, ftp, sudo, su, and others within a given Emacs instance. Also, for some very useful information on using Emacs as a Daemon and EmacsClient are found here and here. Be sure to read the entire page, as the early comments are before Emacs Daemon mode was available in Gnu Emacs.
I’ll probably go into greater detail in a later post, but the files I referred to in the screencast are here:
One detail I realize I failed to mention in the screencast is that I have a bash alias set up on my local machine for ssh to ssh-wrapper. I’m nor entirely happy with this because in order to get everything working 100%, I need to add more stuff to ssh-wrapper to basically parse out all of the ssh options. I hope to figure out a more robust and reliable solution soon.
I welcome any and all comments and suggestions for improvements (besides smart alec comments from coworkers and others on not using Emacs).