emacs上でremote hostAの設定を確認してremote hostBのファイルにcopy-pasteするときとかに便利なtramp
.emacs/init.el
以下を追記
(require 'tramp)
(setq tramp-default-method "ssh")
リモートのファイルを開く
ローカルと同様に C-x C-f
を使用して、
/ssh:username@hostname:/etc/nginx/nginx.conf
で開くだけ
[amazonjs asin=”4774143278″ locale=”JP” title=”Emacsテクニックバイブル ~作業効率をカイゼンする200の技~”]
コメント