Re: Automating remote emacsclient setup

Joel Reicher <[email protected]> Mon, 11 May 2026 02:10:59 +1000
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Michael Albinus <[email protected]> writes:

> Joel Reicher <[email protected]> writes:
>
>> On (info "(emacs) emacsclient Options") there is a long-ish 
>> description of how to set tramp prefix that begins "For 
>> example, assume two hosts..."
>>
>> It is this I'm wondering about automating. The setup of the 
>> tunnel, the generation of the server file on the remote, etc.
>>
>> In terms of the use, this is (quite) nice for any remotely 
>> executed commands that invoke $EDITOR. The one I was doing 
>> recently was crontab -e.
>
> There is with-editor on MELPA.

Hi Michael,

From what I can tell with-editor doesn't use this mechanism, which 
is a bit of a shame, since the design of it is good in my opinion.

> There is also bug#71971, proposing a possible improvement. But 
> this bug is stalled.

The server-window-alist bug? While that relates to a use of 
emacsclient, it doesn't (as far as I can see) mention emacsclient 
being invoked on a remote, which is the situation that interests 
me.

Thanks and regards,

       - Joel