From 5bb480e3df92587471105f7f92f0f67f2704a26e Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 30 Mar 2016 17:49:02 +0800 Subject: [PATCH] Minor fix eshell. --- lisp/init-eshell.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/init-eshell.el b/lisp/init-eshell.el index fb25623ad..9fbe897f8 100644 --- a/lisp/init-eshell.el +++ b/lisp/init-eshell.el @@ -99,12 +99,12 @@ (defalias 'eshell/more 'eshell/less) ;; Integrate helm -(when (featurep 'helm) - (add-hook 'eshell-mode-hook - #'(lambda () - (define-key eshell-mode-map - [remap eshell-pcomplete] - 'helm-esh-pcomplete))) +(eval-after-load 'helm + '(add-hook 'eshell-mode-hook + #'(lambda () + (define-key eshell-mode-map + [remap eshell-pcomplete] + 'helm-esh-pcomplete))) ) (provide 'init-eshell)