tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question for Per-Connection Local Variables


From: Michael Albinus
Subject: Re: Question for Per-Connection Local Variables
Date: Sat, 03 Jul 2021 09:11:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Fredrik Salomonsson <plattfot@posteo.net> writes:

> Hi,

Hi Fredrik,

> I'm trying to use Per-Connection Local Variables [0] to setup a profile
> for machines I connect to at work. I followed the steps described in the
> TRAMP manual [1] and the emacs manual [0].
>
> I didn't get it to work if I tried with a regexp, but if I specified the
> name of one host it worked for that host.
>
> (connection-local-set-profiles
>             '(:application 'tramp :protocol "ssh" :machine ".*\\.work")
>             'remote-bash)

Criteria values of :protocol or :machine are strings, not regexps, see
the docstring of `connection-local-criteria-alist'. If you want to set
it for some hosts only, you must do it for every host name. If you want
to set it for all hosts, you can simply leave the :machine entry out.

> Thanks.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]