Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created December 2, 2010 10:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wardbekker/725085 to your computer and use it in GitHub Desktop.
Save wardbekker/725085 to your computer and use it in GitHub Desktop.
My configuration to open files in an ssh session and opening them in a local emacs with Tramp
(setq server-socket-dir "~/.emacs.d/server")
(server-start)
location="/`whoami`@`hostname`:$(readlink -f $1)"
ssh <YOU@LOCAL-WORKSTATION> emacsclient -n -s '~/.emacs.d/server/server' $location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment