[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enviromental variables into dot.emacs
From: |
Tassilo Horn |
Subject: |
Re: enviromental variables into dot.emacs |
Date: |
Sun, 14 Aug 2011 18:07:52 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
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
Re: enviromental variables into dot.emacs, Michael Markert, 2011/08/14