Working With Google Cloud Compute Instances in Emacs

If you work with Google Cloud Compute Instances, Jack Rusher has an excellent tip in the form of a GitHub Gist for you. It turns out that Tramp connection methods are table driven and you can easily add a new method by adding the appropriate entry to the tramp-methods variable. Rusher shows how to do this for Google Cloud.

There’s extensive documentation in the docstring of tramp-methods so just do a Ctrl+h v tramp-methods to get the full story. While you’re there, take a look at the existing values. You’ll be surprised at all the methods you’ve never heard of before.

Tramp is a beautiful example of table-driven code that is easily extensible by almost anyone. You don’t have to know Elisp, just how to call add-to-list.

This entry was posted in General and tagged . Bookmark the permalink.