Hi Michael,
* Michael Albinus <michael.albi...@gmx.de> [2024-11-20; 16:44 +01]:
> Gregor Zattler <telegr...@gmx.net> writes:
>> Is the string "android" in this setting :
>>
>>     (connection-local-set-profiles
>>      '(:application tramp :machine "android")
>>      'tramp-connection-local-termux-profile)
>>
>> a regexp?
>
> No. It is the host name (plus port, if specified).

thanks.

> (dolist (host '("android" "android.lan" "android.lan#2222"))
>   (connection-local-set-profiles
>    `(:application tramp :machine ,host)
>    'tramp-connection-local-termux-profile))
>
> Untested, of course :-)

Works very well.  Thanks again.

Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-

Reply via email to