unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: enviromental variables into dot.emacs
Date: Sun, 14 Aug 2011 18:07:52 +0200	[thread overview]
Message-ID: <87pqk8t1rb.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 87sjp42drs.fsf@father.nostromo.wy

dgiglio@iol.it (daniele.g) writes:

Hi Daniele,

> Can I put enviromental variables in my .emacs file?

Sure you can.

> How?

,----[ C-h f setenv RET ]
| setenv is an interactive compiled Lisp function in `env.el'.
| 
| (setenv VARIABLE &optional VALUE SUBSTITUTE-ENV-VARS)
| 
| Set the value of the environment variable named VARIABLE to VALUE.
| VARIABLE should be a string.  VALUE is optional; if not provided or
| nil, the environment variable VARIABLE will be removed.
| 
| Interactively, a prefix argument means to unset the variable, and
| otherwise the current value (if any) of the variable appears at
| the front of the history list when you type in the new value.
| This function always replaces environment variables in the new
| value when called interactively.
| 
| SUBSTITUTE-ENV-VARS, if non-nil, means to substitute environment
| variables in VALUE with `substitute-env-vars', which see.
| This is normally used only for interactive calls.
| 
| The return value is the new value of VARIABLE, or nil if
| it was removed from the environment.
| 
| This function works by modifying `process-environment'.
| 
| As a special case, setting variable `TZ' calls `set-time-zone-rule' as
| a side-effect.
`----

HTH,
Tassilo




  reply	other threads:[~2011-08-14 16:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 15:50 enviromental variables into dot.emacs daniele.g
2011-08-14 16:07 ` Tassilo Horn [this message]
2011-08-14 20:12   ` daniele.g
2011-08-14 20:28     ` Michael Markert
2011-08-15  8:47       ` daniele.g
2011-08-14 21:46     ` Jay Belanger
2011-08-14 23:35       ` daniele.g
2011-08-15  0:01         ` Jay Belanger
2011-08-14 16:07 ` Michael Markert

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=87pqk8t1rb.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --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).