* Environment variables in eshell in emacs
@ 2019-10-22 14:40 Siddhesh Divekar
2019-10-23 17:52 ` Alex Kost
0 siblings, 1 reply; 3+ messages in thread
From: Siddhesh Divekar @ 2019-10-22 14:40 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I am setting my environment variables using 'setenv "foo" "bar"' and
they are available for that session.
However they don't get written to any file similar to alias.
How do I make them persistent across emacs restart ?
What is the ideal way to achieve this?
--
-Siddhesh.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Environment variables in eshell in emacs
2019-10-22 14:40 Environment variables in eshell in emacs Siddhesh Divekar
@ 2019-10-23 17:52 ` Alex Kost
2019-10-23 17:59 ` Siddhesh Divekar
0 siblings, 1 reply; 3+ messages in thread
From: Alex Kost @ 2019-10-23 17:52 UTC (permalink / raw)
To: Siddhesh Divekar; +Cc: help-gnu-emacs
Siddhesh Divekar (2019-10-22 07:40 -0700) wrote:
> Hi,
>
> I am setting my environment variables using 'setenv "foo" "bar"' and
> they are available for that session.
>
> However they don't get written to any file similar to alias.
>
> How do I make them persistent across emacs restart ?
> What is the ideal way to achieve this?
I don't know about the ideal way, but I would just put
(setenv "foo" "bar")
in my emacs config file.
--
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Environment variables in eshell in emacs
2019-10-23 17:52 ` Alex Kost
@ 2019-10-23 17:59 ` Siddhesh Divekar
0 siblings, 0 replies; 3+ messages in thread
From: Siddhesh Divekar @ 2019-10-23 17:59 UTC (permalink / raw)
To: Alex Kost; +Cc: help-gnu-emacs
Thanks Alex.
Yes am aiming at doing the same.
On Wed, Oct 23, 2019 at 10:52 AM Alex Kost <alezost@gmail.com> wrote:
> Siddhesh Divekar (2019-10-22 07:40 -0700) wrote:
>
> > Hi,
> >
> > I am setting my environment variables using 'setenv "foo" "bar"' and
> > they are available for that session.
> >
> > However they don't get written to any file similar to alias.
> >
> > How do I make them persistent across emacs restart ?
> > What is the ideal way to achieve this?
>
> I don't know about the ideal way, but I would just put
>
> (setenv "foo" "bar")
>
> in my emacs config file.
>
> --
> Alex
>
--
-Siddhesh.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-23 17:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 14:40 Environment variables in eshell in emacs Siddhesh Divekar
2019-10-23 17:52 ` Alex Kost
2019-10-23 17:59 ` Siddhesh Divekar
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.