66fc6bc4c3b6d10877f9c04740fb91173f49b412
[emacs-init.git] / setup / eshell.el
1 (require 'esh-mode)
2
3 ; grrr ... eshell-mode-map is buffer-local ...
4 (defun my-setup-eshell ()
5   (define-key eshell-mode-map (kbd "<up>") 'previous-line)
6   (define-key eshell-mode-map (kbd "<down>") 'next-line)
7   (define-key eshell-mode-map (kbd "C-<up>") 'eshell-previous-matching-input-from-input)
8   (define-key eshell-mode-map (kbd "C-<down>") 'eshell-next-matching-input-from-input)
9   (define-key eshell-mode-map (kbd "<home>") 'eshell-bol))
10
11 (add-hook 'eshell-mode-hook 'my-setup-eshell)