Editing remote sudo'd files from Emacs

By vijay on July 21, 2012 — 1 min read

Here’s how you can edit remote sudo-protected files without leaving emacs:

Since Emacs 23.2, eshell has also an own implementation of the su and sudo commands. Both commands change the default directory of the *eshell* buffer to the value related to the user the command has switched to. This works even on remote hosts, adding silently a corresponding entry to the variable tramp-default-proxies-alist (see Multi-hops):

Via: Running eshell on a remote host

Posted in: Programming

Leave a comment

Leave a Reply