I need to use my $PATH in Emacs to run some commands. How can I make Emacs use it? I installed Emacs from Ubuntu repositories.
I need to use my $PATH in Emacs to run some commands. How can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a trick I use to ensure my GUI Emacs always sees the same
$PATHthat I get inside a shell:Specifically, on OS X, a graphical Emacs will not pick up the user’s shell’s definition of
$PATH, so this trick helps me on that platform.Update: this code has now been published as an elisp library called exec-path-from-shell and installable packages are available in MELPA.