emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master cb726e7: Add tramp-eshell-directory-change to eshel


From: Michael Albinus
Subject: [Emacs-diffs] master cb726e7: Add tramp-eshell-directory-change to eshell-first-time-mode-hook
Date: Tue, 22 Nov 2016 09:17:06 +0000 (UTC)

branch: master
commit cb726e75980ed56429f20ec70bb1e4a1d25732d2
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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 abe8de3..52a4be8 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)))))
 



reply via email to

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