[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add-to-list examples need hook wrappers
From: |
Michael Albinus |
Subject: |
Re: add-to-list examples need hook wrappers |
Date: |
Mon, 04 Nov 2019 08:42:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
積丹尼 Dan Jacobson <address@hidden> 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.