1

学校のWin7マシンからプライベートサーバー上のファイルを編集するためのemacsをセットアップしようとしています。

emacsを設定し、.emacsのデフォルトのメソッドを変更しました。

(setq tramp-default-method "pscp")

pscp&plinkをダウンロードしました。

問題は、ローカルマシンで%path%を編集できず、%path%のどの場所にもpscpとplinkを配置できないことです。Emacsにそれらを見つける場所を教えるにはどうすればよいですか?

編集:環境変数を編集できますが、すぐには表示されず、無関係の問題が発生しました。グローバル変数と同じ名前のユーザー環境変数を編集すると、ユーザー値がグローバル変数に追加されるようです。

4

1 に答える 1

2

Emacs のexec-path変数はおそらくこれに役立つでしょう:

  -- User Option: exec-path
     The value of this variable is a list of directories to search for
     programs to run in subprocesses.  Each element is either the name
     of a directory (i.e., a string), or `nil', which stands for the
     default directory (which is the value of `default-directory').

     The value of `exec-path' is used by `call-process' and
     `start-process' when the PROGRAM argument is not an absolute file
     name.
于 2012-03-23T03:37:49.960 に答える