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
or
C-x C-f /ssh:remoteusername@remotehost:filename)


Reference
http://www.emacswiki.org/emacs/TrampMode

Comments

Popular posts from this blog

install postgreSQL in ubuntu 16.04

timestamp with 16, 13 and 10 digits to Qlik date

install ipython in Cloudera VM using pip