diff options
author | rekado <rekado@elephly.net> | 2015-05-04 10:49:49 +0200 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2015-05-04 10:49:49 +0200 |
commit | 5eac65a03122564b2e574e30145740193ed91cab (patch) | |
tree | 9e599a024cda4414026196e8e93a916167883082 /lisp | |
parent | 17f7447249329ec8edb209001130a6cbd5bf797b (diff) |
shell: reorder hooks
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-eshell.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/init-eshell.el b/lisp/init-eshell.el index 9d733a7..ec5066a 100644 --- a/lisp/init-eshell.el +++ b/lisp/init-eshell.el @@ -37,12 +37,8 @@ (concat (car pieces) ":~/") "~/")))) -(add-hook 'eshell-mode-hook - '(lambda () - (define-key eshell-mode-map (kbd "C-c /") 'my/tramp-root) - (define-key eshell-mode-map (kbd "C-c ~") 'my/tramp-home))) - -;; use cat as the pager in shell mode, because shell-mode is not an ANSI terminal +;; use cat as the pager in shell mode, because shell-mode is not an +;; ANSI terminal (setenv "PAGER" "cat") ;; C-d on an empty line in the shell terminates the process. @@ -64,3 +60,8 @@ (lambda () (define-key term-mode-map (kbd "C-d") 'my/comint-delchar-or-eof-or-kill-buffer))) + +(add-hook 'eshell-mode-hook + '(lambda () + (define-key eshell-mode-map (kbd "C-c /") 'my/tramp-root) + (define-key eshell-mode-map (kbd "C-c ~") 'my/tramp-home))) |