From c4e404b0bbd6321315ab1c5e890fae77ea59093b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 10 May 2017 05:29:56 +0200 Subject: [PATCH] tools/eshell: set eshell-visual-(sub)?commands --- modules/tools/eshell/config.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index 35ee8bfaf..a4d0bf149 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -28,6 +28,13 @@ (set! :popup "^\\*eshell:popup\\*$" :regexp t :size 25) (set! :evil-state 'eshell-mode 'insert) + ;; Visual commands require a proper terminal. Eshell can't handle that, so it + ;; delegates these commands to a term buffer. + (setq eshell-visual-commands + (append eshell-visual-commands + '("less" "tmux" "htop" "top" "bash" "zsh" "fish")) + eshell-visual-subcommands '(("git" "log" "l" "diff" "show"))) + (defun +eshell|keymap-setup () "Setup eshell keybindings. This must be done in a hook because eshell redefines its keys every time `eshell-mode' is enabled."