From cb726e75980ed56429f20ec70bb1e4a1d25732d2 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 22 Nov 2016 10:16:54 +0100 Subject: [PATCH] Add tramp-eshell-directory-change to eshell-first-time-mode-hook * lisp/net/tramp.el (tramp-eshell-directory-change): Add it also to `eshell-first-time-mode-hook'. --- lisp/net/tramp.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index abe8de39b60..52a4be863c7 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -4349,11 +4349,14 @@ Only works for Bourne-like shells." (eval-after-load "esh-util" '(progn - (tramp-eshell-directory-change) + (add-hook 'eshell-first-time-mode-hook + 'tramp-eshell-directory-change) (add-hook 'eshell-directory-change-hook 'tramp-eshell-directory-change) (add-hook 'tramp-unload-hook (lambda () + (remove-hook 'eshell-first-time-mode-hook + 'tramp-eshell-directory-change) (remove-hook 'eshell-directory-change-hook 'tramp-eshell-directory-change))))) -- 2.39.5