From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrick Drechsler Newsgroups: gmane.emacs.devel Subject: Re: single init file/directory for windows and linux using version control svn or cvs Date: Thu, 21 Sep 2006 12:23:03 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158834369 22838 80.91.229.2 (21 Sep 2006 10:26:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2006 10:26:09 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 21 12:26:08 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQLkW-0002ha-BW for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2006 12:25:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQLkV-00025i-NL for ged-emacs-devel@m.gmane.org; Thu, 21 Sep 2006 06:25:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GQLkK-00024S-V6 for emacs-devel@gnu.org; Thu, 21 Sep 2006 06:25:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GQLkJ-00021o-G7 for emacs-devel@gnu.org; Thu, 21 Sep 2006 06:25:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GQLkJ-00021f-C5 for emacs-devel@gnu.org; Thu, 21 Sep 2006 06:25:31 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GQLnn-0007iu-Hr for emacs-devel@gnu.org; Thu, 21 Sep 2006 06:29:07 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GQLjq-0002Uy-Iv for emacs-devel@gnu.org; Thu, 21 Sep 2006 12:25:02 +0200 Original-Received: from dslb-084-057-068-213.pools.arcor-ip.net ([84.57.68.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Sep 2006 12:25:02 +0200 Original-Received: from patrick by dslb-084-057-068-213.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Sep 2006 12:25:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-057-068-213.pools.arcor-ip.net User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60058 Archived-At: Stefan Monnier wrote: >> Furthermore: What would be the current Emacs variable to tweak for using an > >> IF windows >> use this path >> ELSEIF Cygwin >> use another path >> ELSE ;; linux >> use yet another path > >> construct? > > I tend to do it like this: > > (cond > ((file-directory-p "/sw/bin/") > ... use /sw/bin ...) > ((file-directory-p "D:/homes/") > ... use d:/homes/ ...) > ((file-directory-p "/usr/local/bin/") > ... use /usr/local/bin ...) > (t ... use the default ...)) > > Especially since I have access to different GNU/Linux systems which use > different paths, so checking the OS doesn't cut it. Good idea, I will give it a try. Thanks! Regards Patrick