[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enviromental variables into dot.emacs
From: |
daniele.g |
Subject: |
Re: enviromental variables into dot.emacs |
Date: |
Mon, 15 Aug 2011 01:35:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Jay Belanger <jay.p.belanger@gmail.com> writes:
>> My aim is to unify my conf files making them picking as many values as
>> possible from the same place.
>
> Same here. I have COMPUTERNAME set to different values on different
> computers, so my init file contains
>
> (Cond ((string= (getenv "COMPUTERNAME") "home")
> ... home computer specific stuff ...)
> ((String= (getenv "COMPUTERNAME") "office")
> ... office computer specific stuff ...)
> ((String= (getenv "COMPUTERNAME") "netbook")
> ... netbook specific stuff ...))
Forgive me, but my elisp skills are quite low. Can I use a syntax like
this?
(setq var (getenv $VAR))
--
Era cosi' povero che non poteva neanche permettersi di regalare uno
yo-yo al suo bambino per Natale. Fece in modo di regalargli uno yo.
-- Martin Kauffman
Re: enviromental variables into dot.emacs, Michael Markert, 2011/08/14