Categories
Computers & Software

Emacs Suprises

I shouldn’t be surprised anymore about the capabilities of Emacs.  But now that Sluggo has moved into my closet as a headless server, I have been doing a lot of ssh’ing to the poor beast from my other computers in order to manage files remotely.  Only recently though I discovered I could edit text files remotely using Emacs like this:

C-x C-f /ssh:Sluggo:MyFile

The ssh: prefix is actually unnecessary, as ssh is the default transfer protocol. Once I’ve done this I can just C-x d to enter dired mode and fool around with Sluggo’s directories and files. The whole thing, other than the initial request for my password, is totally transparent — the files may as well be on my local machine. The magic is accomplished using TRAMP, which is built in to Emacs 23. Neat!

By mannd

I am a retired cardiac electrophysiologist who has worked both in private practice in Louisville, Kentucky and as a Professor of Medicine at the University of Colorado in Denver. I am interested not only in medicine, but also in computer programming, music, science fiction, fantasy, 30s pulp literature, and a whole lot more.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.