From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: single init file/directory for windows and linux using version control svn or cvs Date: Wed, 20 Sep 2006 00:49:28 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158727787 26420 80.91.229.2 (20 Sep 2006 04:49:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Sep 2006 04:49:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 20 06:49:47 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 1GPu1p-0007SG-Fq for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2006 06:49:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPu1p-0006LP-5D for ged-emacs-devel@m.gmane.org; Wed, 20 Sep 2006 00:49:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GPu1e-0006LK-0l for emacs-devel@gnu.org; Wed, 20 Sep 2006 00:49:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GPu1c-0006KZ-0d for emacs-devel@gnu.org; Wed, 20 Sep 2006 00:49:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GPu1b-0006KW-TI for emacs-devel@gnu.org; Wed, 20 Sep 2006 00:49:31 -0400 Original-Received: from [64.122.15.118] (helo=alfajor) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GPu4p-0000jJ-3g for emacs-devel@gnu.org; Wed, 20 Sep 2006 00:52:51 -0400 Original-Received: by alfajor (Postfix, from userid 20848) id C85BF1C227; Wed, 20 Sep 2006 00:49:28 -0700 (PDT) Original-To: Patrick Drechsler In-Reply-To: (Patrick Drechsler's message of "Wed\, 20 Sep 2006 01\:09\:10 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:60031 Archived-At: > I'm trying to conceive a single repository for my personal configurations > using SVN. To keep everything in one folder I have deleted "~/.emacs" and > started using "~/.emacs.d/init.el". Furthermore I have put all my > external lisp files in "~/.emacs.d/mysitelisp", which are included > correctly by init.el. I agree that Emacs should be moving in such a direction. We already use the ~/.emacs.d directory for various config files. > This works fine with Linux, WindowsXP and Cygwin. BUT I had to repeat > this procedure in each corresponding home directories. What procedure? > 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. Stefan