open a file in the remote server in local emacs
In emacs version GNU 23, we can use tramp mode (which is contained in emacs package since version 22) to open a file in the remote server in local emacs by 2 steps:
1. Add the setting below in the local .emacs file:
(setq tramp-default-method "ssh")
2. Open emacs locally, and use the cmd of opening a file:
C-x C-f /remoteusername@remotehost:filename RET
orC-x C-f /ssh:remoteusername@remotehost:filename)
Reference
http://www.emacswiki.org/emacs/TrampMode
Comments
Post a Comment