public
Last active

My configuration to open files in an ssh session and opening them in a local emacs with Tramp

  • Download Gist
.emacs
Emacs Lisp
1 2
(setq server-socket-dir "~/.emacs.d/server")
(server-start)
em.sh
Shell
1 2
location="/`whoami`@`hostname`:$(readlink -f $1)"
ssh <YOU@LOCAL-WORKSTATION> emacsclient -n -s '~/.emacs.d/server/server' $location

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.