Originate edit of remote file using emacs tramp from ssh session

You can set up your emacs-server to use a tcp connection (not just a local socket), and then on the remote side, tell emacsclient to connect to that tcp connection: In your .emacs (setq server-use-tcp t) (setq server-host “name_of_local_machine”) (server-start) And then on the remote side: emacsclient -f ~/.emacs.d/server/server /`hostname`:/path/to/local/file The above call to emacsclient … Read more

Emacs: Tramp doesn’t work

If the account you’re connecting to uses some weird fancy shell prompt, then there is a good chance that this is what makes tramp trip. Log in as root, then enter PS1=”> ” (that’s a normal, standard shell (ZSH, BASH, younameit) prompt, one that tramp will understand) then switch to the user account, and launch … Read more

Open file via SSH and Sudo with Emacs

As of Emacs 24.3, an analog of the old multi: syntax has been layered on top of the modern tramp-default-proxies-alist approach, meaning that you can once again perform multi-hops without any prior configuration. For details, see: C-hig (tramp)Ad-hoc multi-hops RET With the new syntax, each ‘hop’ is separated by |. The example in the manual … Read more