help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: updating shell environment variables


From: Kevin Rodgers
Subject: Re: updating shell environment variables
Date: Fri, 05 Nov 2004 11:37:25 -0700
User-agent: Mozilla Thunderbird 0.8 (X11/20040916)

Dan Elliott wrote:
> My intended question is a bit more complicated.  Change the above from
> "few" to "nearly one-hundred."  I have failed to discover an effective
> way to do this.  Can I somehow *flash* the state of emacs' environment
> variables to be in line with the shell that "owns" my current emacs
> session?

Like this?

# in the shell:
env | awk -F= '{print "(setenv \"" $1 "\" \"" $2 "\")" }' > /tmp/env.el

; in emacs:
(load-file "/tmp/env.el")

--
Kevin Rodgers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]