From 2c68a41adb68eb47672039e778b95e843158c75f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 12 May 2017 12:07:28 +0200 Subject: [PATCH] tools/eshell: set eshell-visual-(sub)?commands properly --- modules/tools/eshell/config.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index a4d0bf149..67c254bc0 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -28,12 +28,11 @@ (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"))) + (after! em-term + ;; Visual commands require a proper terminal. Eshell can't handle that, so it + ;; delegates these commands to a term buffer. + (nconc eshell-visual-commands '("tmux" "htop" "bash" "zsh" "fish" "vim" "nvim")) + (setq eshell-visual-subcommands '(("git" "log" "l" "diff" "show")))) (defun +eshell|keymap-setup () "Setup eshell keybindings. This must be done in a hook because eshell