From 2e9b4cf111b3ba46994b6bb608aca5e07ac00b75 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 22 Jul 2013 11:43:48 +0200 Subject: emacs: Fixed EShell path --- emacs.d/init-eshell.el | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'emacs.d/init-eshell.el') diff --git a/emacs.d/init-eshell.el b/emacs.d/init-eshell.el index 59cebe62a50d..2fd2ed9422f8 100644 --- a/emacs.d/init-eshell.el +++ b/emacs.d/init-eshell.el @@ -5,10 +5,17 @@ (defvar home-dir) (setq home-dir (expand-file-name "~")) -(setq eshell-path-env (concat - "/usr/local/bin:" - (concat home-dir "/bin:") - eshell-path-env)) +(defun eshell-mode-hook-setup () + "Sets up EShell when it is loaded" + + (setq eshell-path-env (concat + "/usr/local/bin:" + (concat home-dir "/bin:") + eshell-path-env)) + + (setenv "PATH" eshell-path-env)) + +(add-hook 'eshell-mode-hook 'eshell-mode-hook-setup) ;; Prompt configuration -- cgit 1.4.1