summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2015-05-04 10:46:57 +0200
committerrekado <rekado@elephly.net>2015-05-04 10:46:57 +0200
commit339e3373689f32c43d0d9085beeaa74542d7ab5b (patch)
treeb61dab446dae8b289f69617c825b01e36bf84606 /lisp
parent9cfa8b71b339d33b56fe6fe01d4758d083c8937f (diff)
shell: match previous input on <up>
Make shell-mode behave a little more like eshell.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-eshell.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/init-eshell.el b/lisp/init-eshell.el
index ff35f6a..72d5a82 100644
--- a/lisp/init-eshell.el
+++ b/lisp/init-eshell.el
@@ -62,7 +62,10 @@
(add-hook 'shell-mode-hook
(lambda ()
(define-key shell-mode-map
- (kbd "C-d") 'my/comint-delchar-or-eof-or-kill-buffer)))
+ (kbd "C-d") 'my/comint-delchar-or-eof-or-kill-buffer)
+ (define-key shell-mode-map
+ (kbd "<up>") 'comint-previous-matching-input-from-input)))
+
;; TODO: this isn't working
(add-hook 'term-mode-hook
(lambda ()