積丹尼 Dan Jacobson <[email protected]> writes:

Hi Dan,

> All such add-to-list examples:
>
>      For instances where hosts keep obscure locations for paths for
>      security reasons, manually add such paths to local ‘.emacs’ as
>      shown below for TRAMP to use when connecting.
>
>           (add-to-list 'tramp-remote-path "/usr/local/perl/bin")
>
> need to be wrapped in hooks, or eval-after-load, else they will produce
> errors when the user starts emacs.

The Tramp manual tells you in "5 Configuring TRAMP":

--8<---------------cut here---------------start------------->8---
   *Note* that some user options described in these examples are not
auto loaded by Emacs.  All examples require TRAMP is installed and
loaded:

     (customize-set-variable 'tramp-verbose 6 "Enable remote command traces")

   For functions used to configure TRAMP, the following clause might be
used in your init file:

     (with-eval-after-load 'tramp (tramp-change-syntax 'simplified))
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.

Reply via email to