How to add paths to your emacs shell

Actually this is probably because start-process can’t find your git

executable. Try doing something like this in your Emacs configuration

(adjust the path if needed):

(setenv “PATH” (concat (getenv “PATH”) “:/usr/local/git/bin”))

(setq exec-path (append exec-path ‘(“/usr/local/git/bin”)))

If you’re trying to use magit in emacs, and you can’t figure out why it’s not recognizing your git repos, it’s probably because it can’t find git. And it can’t find git, because it’s not in the path.

Just set the path, as it’s show above, and add your own directory, wherever git is being held. If you’re on a mac, you can add /opt/local/bin for the rest of your utilities.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s