Home > Notes > Loading system variables into Emacs

Loading system variables into Emacs

Tue, 28 Jun 2011 04:41:17 +0800
In order to compile program sources inside Emacs, i use Emacs's shell to do these.
M-x shell

But, the original shell is so weak to do these, there was message 'command not found' when i run 'make' etc. However, i have installed them before.

The reason is Emacs shell have not imported the variables of system's.
(setenv "PATH" (concat "d:/emacs/bin;" (getenv "PATH")))

It'll import all of them into Emacs.
Tag:Emacs
Hots
评论
发表评论:


  [TIPS:首次发表评论的朋友,需要验证]
Tags
Recent Post
Recent Comments
Links
Copyright Notes
You can reship all of these articles without permission but MUST mark the original link in your post. Please contact with me() if u have advice or other arrangements.
Copyright©2007-2011 lewphee.com All rights reserved.