diff options
| author | Michael Albinus | 2016-11-22 10:16:54 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-11-22 10:16:54 +0100 |
| commit | cb726e75980ed56429f20ec70bb1e4a1d25732d2 (patch) | |
| tree | e239399acffbe2b1973cccbecbad191a5f4b069a | |
| parent | 2043e6004cac26b8cfacf079cd31a1caa11a699d (diff) | |
| download | emacs-cb726e75980ed56429f20ec70bb1e4a1d25732d2.tar.gz emacs-cb726e75980ed56429f20ec70bb1e4a1d25732d2.zip | |
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'.
| -rw-r--r-- | lisp/net/tramp.el | 5 |
1 files changed, 4 insertions, 1 deletions
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." | |||
| 4349 | 4349 | ||
| 4350 | (eval-after-load "esh-util" | 4350 | (eval-after-load "esh-util" |
| 4351 | '(progn | 4351 | '(progn |
| 4352 | (tramp-eshell-directory-change) | 4352 | (add-hook 'eshell-first-time-mode-hook |
| 4353 | 'tramp-eshell-directory-change) | ||
| 4353 | (add-hook 'eshell-directory-change-hook | 4354 | (add-hook 'eshell-directory-change-hook |
| 4354 | 'tramp-eshell-directory-change) | 4355 | 'tramp-eshell-directory-change) |
| 4355 | (add-hook 'tramp-unload-hook | 4356 | (add-hook 'tramp-unload-hook |
| 4356 | (lambda () | 4357 | (lambda () |
| 4358 | (remove-hook 'eshell-first-time-mode-hook | ||
| 4359 | 'tramp-eshell-directory-change) | ||
| 4357 | (remove-hook 'eshell-directory-change-hook | 4360 | (remove-hook 'eshell-directory-change-hook |
| 4358 | 'tramp-eshell-directory-change))))) | 4361 | 'tramp-eshell-directory-change))))) |
| 4359 | 4362 | ||