From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.help Subject: Re: enviromental variables into dot.emacs Date: Sun, 14 Aug 2011 16:46:55 -0500 Message-ID: <87r54npsxc.fsf@gmail.com> References: <87sjp42drs.fsf@father.nostromo.wy> <87pqk8t1rb.fsf@thinkpad.tsdh.de> <87fwl3pxbe.fsf@father.nostromo.wy> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1313358629 19907 80.91.229.12 (14 Aug 2011 21:50:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 21:50:29 +0000 (UTC) Cc: jay.p.belanger@gmail.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 14 23:50:19 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 1QsiZU-0002so-HH for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 23:50:16 +0200 Original-Received: from localhost ([::1]:36744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsiZT-0008WJ-Sv for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Aug 2011 17:50:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsiZP-0008W2-DI for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:50:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsiZN-0005u6-Eo for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:50:11 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsiZN-0005te-9L for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 17:50:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QsiZI-0002mm-Tg for help-gnu-emacs@gnu.org; Sun, 14 Aug 2011 23:50:04 +0200 Original-Received: from 184-155-82-200.cpe.cableone.net ([184.155.82.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Aug 2011 23:50:04 +0200 Original-Received: from jay.p.belanger by 184-155-82-200.cpe.cableone.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Aug 2011 23:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 14 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 184-155-82-200.cpe.cableone.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:6OXkvR0Qq8PJcGvazQvulUpCZcU= 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:81944 Archived-At: > 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 ...))