From b94881c63a2f01d9c4e560642f7b3907df4926e8 Mon Sep 17 00:00:00 2001 From: 10sr Date: Thu, 15 Sep 2011 23:57:16 +0900 Subject: [PATCH] add eshell-mode keybind and func eshell/v --- .emacs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs b/.emacs index abb4bb5..447cb89 100644 --- a/.emacs +++ b/.emacs @@ -1291,6 +1291,9 @@ Optional prefix ARG says how many lines to unflag; default is one line." "if first arg is omitted open current directory." (dired (or dirname ".") switches)) +(defun eshell/v () + (view-mode 1)) + (defalias 'eshell/type 'eshell/which) (defalias 'eshell/vim 'eshell/vi) (defalias 'eshell/ff 'find-file) @@ -1373,6 +1376,8 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer." (eshell-goto-prompt) (my-keyboard-quit))) (define-key eshell-mode-map (kbd "DEL") 'my-eshell-backward-delete-char) + (define-key eshell-mode-map (kbd "C-p") 'eshell-previous-matching-input-from-input) + (define-key eshell-mode-map (kbd "C-n") 'eshell-next-matching-input-from-input) (mapcar (lambda (alias) (add-to-list 'eshell-command-aliases-list alias))