From 2addfebf8e82b7acf6782112a23febbb3a2fdd6e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 Jun 2018 16:42:26 +0200 Subject: [PATCH] Refactor eshell-visual-commands (and add ncmpcpp) --- modules/emacs/eshell/config.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/emacs/eshell/config.el b/modules/emacs/eshell/config.el index 4d3d45dc2..86f34264c 100644 --- a/modules/emacs/eshell/config.el +++ b/modules/emacs/eshell/config.el @@ -53,9 +53,8 @@ (after! em-term ;; 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 '("tmux" "htop" "bash" "zsh" "fish" "vim" "nvim")) - eshell-visual-subcommands '(("git" "log" "l" "diff" "show")))) + (dolist (cmd '("tmux" "htop" "bash" "zsh" "fish" "vim" "nvim" "ncmpcpp")) + (cl-pushnew cmd eshell-visual-commands))) (defun +eshell|init-evil () "Replace `evil-collection-eshell-next-prompt-on-insert' with