From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dgiglio@iol.it (daniele.g) Newsgroups: gmane.emacs.help Subject: Re: enviromental variables into dot.emacs Date: Mon, 15 Aug 2011 01:35:36 +0200 Message-ID: <87zkjbmurb.fsf@father.nostromo.wy> References: <87sjp42drs.fsf@father.nostromo.wy> <87pqk8t1rb.fsf@thinkpad.tsdh.de> <87fwl3pxbe.fsf@father.nostromo.wy> <87r54npsxc.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1313365105 19862 80.91.229.12 (14 Aug 2011 23:38:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 23:38:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 01:38:21 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QskG5-0001L0-4I for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 01:38:21 +0200 Original-Received: from localhost ([::1]:55385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QskG4-0006S7-Mo for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 19:38:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QskFz-0006Rz-Sr for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 19:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QskFz-0000wk-2F for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 19:38:15 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:54467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QskFy-0000we-Pv for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 19:38:15 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QskFx-0001GZ-Od for help-gnu-emacs@gnu.org; Mon, 15 Aug 2011 01:38:13 +0200 Original-Received: from 94.160.119.135 ([94.160.119.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 01:38:13 +0200 Original-Received: from dgiglio by 94.160.119.135 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 01:38:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 94.160.119.135 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAIVBMVEUKBgJHNwZnWhKKdhuH fEGjlCWooVPLtSLHtkz83gTczE4nySiQAAAACXBIWXMAABwgAAAcIAHND5ueAAABb0lEQVQ4y+2T P08CMRjGn5YUiFOPBFSmQ6MEptsIGyzG8dAQ0MkBdsHBHBMO+gEgF9KbwMRc7lva9nqkAg4mjDZp +j79te/zpn8gfmn4B8cC01aSTUTTlgWeySADLzi1wAKoiyhaCXEHtC0QcWC2cJxGCNDENneBqgew uey2eeQDOQmZ7IUf5T7JFHL1mQRFsZMK78AYO6liOYEmJ29yIIEFPAWYz3w9JluwVBrlebWng/YW dJSkMSczF5mLAiu9jgyBrzQKDFjgQulTj03U2EXDgA1GaiK3PtGZbtA0QEtp7uZSc20iQZgqPIJ8 mjDQwDeq4OezsKLA1AhC11WXGNEQUAeLWw760e/kx0M3zcfkDmlNeyAjrrf1gSuegvDeYRx1k744 AfVL1wNlHkkblpiaqUw9SLKzCmvnghsgJqXAutogNvU4SWTfh2wVR5fc3Xuir2Wve8l6wf7bndU2 TRYfetSr5UMgDoHj/I+/gG+5ve4w9Ul2rAAAAA90RVh0SlBFRy1RdWFsaXR5ADkwMFHskQAAABF0 RVh0SlBFRy1Db2xvcnNwYWNlADKBDSEkAAAAIXRFWHRKUEVHLVNhbXBsaW5nLWZhY3RvcnMAMngy LDF4MSwxeDHlUdu4AAAAAElFTkSuQmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:K80tM8Nym/8KOwYDYQ1wwzpl+YQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81945 Archived-At: Jay Belanger 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