[{TableOfContents }]

!! Tramp

The user manual is available [Here | http://www.gnu.org/software/tramp]

Initiate all examples with C-x C-f

!! Examples

Edit the file .emacs in your home directory on the machine melancholia.
{{{
/melancholia:.emacs
}}}

Edits the same file, using the fully qualified domain name of the machine.
{{{
/melancholia.danann.net:.emacs
}}}

Also edits the same file — the ~ is expanded to your home directory on the remote machine, just like it is locally.
{{{
/melancholia:~/.emacs
}}}


This edits the file .emacs in the home directory of the user daniel on the machine melancholia. The ~<user> construct is expanded to the home directory of that user on the remote machine.
{{{
/melancholia:~daniel/.emacs
}}}


This edits the file /etc/squid.conf on the machine melancholia. 
{{{
/melancholia:/etc/squid.conf
}}}

! Autoload

Put the following code in your {{.emacs }} file or put it in a file call tramp.el in your .emacs.d folder

{{{
;; allow opening over ssh
(require 'tramp)
; (setq tramp-default-method "scp")
(setq tramp-default-method "ssh")
(setq tramp-default-user "arcoleo")
}}}

----
[Emacs | CategoryArchive.Computing.IDE.Emacs]