Habibullah’s posterous

« Back to blog

Tramp

Today I configured Tramp. Tramp allows you to SCP or SSH to remote servers and create and edit files as another user, all through Emacs. This link will take you to the official site. I don't need to expound upon how useful this feature is :)

I have updated my .emacs file filled with new Tramp goodness!

Tramp comes with GNU Emacs 22 onwards. If you are using 21.4, or previous, you have a few steps to perform before you can use Tramp.
  1. Download Tramp.
  2. Extract to a temporary location.
  3. Run ./configure
  4. Run make
  5. Run make install
  6. In your .emacs file add the following code and then save and restart emacs:
    (require 'tramp)

    (setq tramp-default-method "ssh")
  7. To access a file on a remote server:
    C-x C-f /remotehost:filename RET (or /method:user@remotehost:filename)

Comments (0)

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     Connect     twitter