unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Chris Poole <lists@chrispoole.com>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: help with exec-path
Date: Mon, 14 Nov 2011 13:26:58 +0000	[thread overview]
Message-ID: <CAF=P9QCon_AJ4f_K2N9KU5iUNrU-jyng8MYb2uTdrJKquNfx_A@mail.gmail.com> (raw)
In-Reply-To: <87r51fp4h1.fsf@ericabrahamsen.net>

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]



  reply	other threads:[~2011-11-14 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11  6:18 help with exec-path Eric Abrahamsen
2011-11-14 13:26 ` Chris Poole [this message]
2011-11-16 19:53 ` S Boucher
2011-11-17  4:26   ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF=P9QCon_AJ4f_K2N9KU5iUNrU-jyng8MYb2uTdrJKquNfx_A@mail.gmail.com' \
    --to=lists@chrispoole.com \
    --cc=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).