https://blog.csdn.net/loveaborn/article/details/24889197
I remember some time ago a friend asked me why I can not open matlab program in emacs? Clearly in terminal is able to open, but not in emacs.
Today, I finally encountered a similar problem, I installed racket 6.0 today. After installation path racket run the program is / usr / local / racket / bin
Then I added to this path in the PATH, can be opened in the terminal environment
Next, install Geiser down, it is a plug-in connection racket under emacs, its installation is very easy, I put it into the compiled file ~ / .emacs.d / site-lisp / geiser
Then init.el add the following line, I see the configuration file https://github.com/aborn/emacs.d
(load "~/.emacs.d/site-lisp/geiser/elisp/geiser-load")
And then use Mx run-geiser discovery program can not find the racket. Then I did not think there should be practical to bash emacs environment of PATH,
Otherwise, why not?
Internet to find two links link1 and link2 , discovered that emacs is running path is determined by the variable exec-path.
Then open Mx ielm see exec-path find content such as the following:
exec-path
("/usr/local/sbin" "/usr/local/bin" "/usr/sbin" "/usr/bin" "/sbin" "/bin" "/usr/games" "/usr/local/games" "/usr/lib/emacs/24.3/i686-linux-gnu")
Not found / usr / local / racket / bin
This, then, should we just add the following line in the configuration file init.el, the path / usr / local / racket / bin added to exec-path in on it
(add-to-list 'exec-path "/usr/local/racket/bin")
Then there is the view exec-path
ELISP> exec-path
("/usr/local/racket/bin" "/usr/local/sbin" "/usr/local/bin" "/usr/sbin" "/usr/bin" "/sbin" "/bin" "/usr/games" "/usr/local/games" "/usr/lib/emacs/24.3/i686-linux-gnu")
Then run Mx run-geiser on OK
My operating system is Ubuntu 14.04 LTS