From 6f3f4de46db28d1f6195e6c067e2a91e7b2f80f7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 17 Nov 2020 12:28:25 -0500 Subject: [PATCH] Fix #4279: runaway duplication in eshell-command-aliases-list --- modules/term/eshell/config.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/term/eshell/config.el b/modules/term/eshell/config.el index c5084f9d3..daa5fd144 100644 --- a/modules/term/eshell/config.el +++ b/modules/term/eshell/config.el @@ -110,12 +110,11 @@ You should use `set-eshell-alias!' to change this.") (after! em-term (pushnew! eshell-visual-commands "tmux" "htop" "vim" "nvim" "ncmpcpp")) - (add-hook! 'eshell-alias-load-hook - (defun +eshell-init-aliases-h () - (setq +eshell--default-aliases eshell-command-aliases-list - eshell-command-aliases-list - (append eshell-command-aliases-list - +eshell-aliases))))) + (after! em-alias + (setq +eshell--default-aliases eshell-command-aliases-list + eshell-command-aliases-list + (append eshell-command-aliases-list + +eshell-aliases)))) (after! esh-mode