emacs: Fixed EShell path

This commit is contained in:
Vincent Ambo 2013-07-22 11:43:48 +02:00
parent 818b2eb2d5
commit 2e9b4cf111

View file

@ -5,11 +5,18 @@
(defvar home-dir) (defvar home-dir)
(setq home-dir (expand-file-name "~")) (setq home-dir (expand-file-name "~"))
(defun eshell-mode-hook-setup ()
"Sets up EShell when it is loaded"
(setq eshell-path-env (concat (setq eshell-path-env (concat
"/usr/local/bin:" "/usr/local/bin:"
(concat home-dir "/bin:") (concat home-dir "/bin:")
eshell-path-env)) eshell-path-env))
(setenv "PATH" eshell-path-env))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-setup)
;; Prompt configuration ;; Prompt configuration
(defun clean-pwd (path) (defun clean-pwd (path)