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

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

Re: enviromental variables into dot.emacs


From: Jay Belanger
Subject: Re: enviromental variables into dot.emacs
Date: Sun, 14 Aug 2011 16:46:55 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> 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 ...))





reply via email to

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