Using Emacs server and emacsclient on other machines as other users

后端 未结 4 1925
慢半拍i
慢半拍i 2020-12-12 13:09

I know that after I call (start-server) inside an existing Emacs session I can then use emacsclient -c (on the same computer) to create new frames

4条回答
  •  再見小時候
    2020-12-12 13:26

    Aaron Gallagher implemented a solution: http://blog.habnab.it/blog/2013/06/25/emacsclient-and-tramp/

    It works (AFAIU) like:

    • emacs server is started with tcp
    • He opens a connection to a remote system with tramp-sh, opening a forward port ("back channel")
    • tramp-sh is advised to copy an extended auth cookie file to the remote system
    • On the remote system he calls a special emacsclient.sh shell script that emulates emacsclient but prefixes the file names with the corresponding tramp prefix that is found in the extended auth cookie

    I've added a comment to his blog post proposing this idea to be discussed and enhanced on emacs-devel.

提交回复
热议问题