[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with exec-path
From: |
Chris Poole |
Subject: |
Re: help with exec-path |
Date: |
Mon, 14 Nov 2011 13:26:58 +0000 |
On Fri, Nov 11, 2011 at 6:18 AM, Eric Abrahamsen
<eric@ericabrahamsen.net> wrote:
> I'm trying to get auctex to use the executables in my self-compiled
> texlive installation. I set the proper paths in my .bashrc file, and
> again (just for good measure) with (setenv "PATH") in my .emacs. That
> doesn't get the proper paths into `exec-path', though.
> That makes me think that the variable is getting reset somewhere. I
> shouldn't have to manipulate exec-path directly, should I?
I'm using Mac OS X, and I have to (or at least, do for good measure; I don't
remember).
I wrote a simple function to grab the $PATH variable from the .zshrc file, and
then put this in the "PATH" environment variable using setenv in Emacs.
To put this information in exec-path, I use the following:
(setq exec-path (split-string (getenv "PATH") ":"))
It works pretty well for me.
Cheers
Chris Poole
[PGP BAD246F9]