From 7ccf15c52602687a89a8817c63bf97a5d33ef4e3 Mon Sep 17 00:00:00 2001 From: Rich Alesi Date: Wed, 25 Mar 2015 23:04:35 -0700 Subject: [PATCH] [up] and [down] in shell to go to cycle through previous commands --- spacemacs/keybindings.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spacemacs/keybindings.el b/spacemacs/keybindings.el index 22df3bb3d..aa372a27d 100644 --- a/spacemacs/keybindings.el +++ b/spacemacs/keybindings.el @@ -303,6 +303,11 @@ Ensure that helm is required before calling FUNC." ;; google translate ----------------------------------------------------------- (evil-leader/set-key "xgl" 'set-google-translate-languages) +;; shell ---------------------------------------------------------------------- +(eval-after-load "shell" + '(progn + (evil-define-key 'insert comint-mode-map [up] 'comint-previous-input) + (evil-define-key 'insert comint-mode-map [down] 'comint-next-input))) ;; --------------------------------------------------------------------------- ;; Micro-states