all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
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	[thread overview]
Message-ID: <jwvwt7zc92q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <eeptb6$8tq$1@sea.gmane.org> (Patrick Drechsler's message of "Wed\, 20 Sep 2006 01\:09\:10 +0200")

> 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

  parent reply	other threads:[~2006-09-20  7:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-19 23:09 single init file/directory for windows and linux using version control svn or cvs Patrick Drechsler
2006-09-20  3:24 ` Eli Zaretskii
2006-09-21 10:21   ` Patrick Drechsler
2006-09-20  7:49 ` Stefan Monnier [this message]
2006-09-21 10:23   ` Patrick Drechsler
2006-09-21  1:58 ` Richard Stallman
2006-09-21 10:25   ` Patrick Drechsler
2006-09-21 11:53   ` CHENG Gao
2006-09-21 12:15     ` Jason Rumney
2006-09-21 20:15       ` Richard Stallman
2006-09-22 12:39         ` Eli Zaretskii
2006-09-23  3:34           ` Richard Stallman
2006-09-23 10:26             ` Eli Zaretskii
2006-09-22  2:41       ` CHENG Gao
2006-09-22 12:46         ` Eli Zaretskii
2006-09-22 14:31           ` CHENG Gao
2006-09-23  9:57             ` Eli Zaretskii
2006-09-23 10:17         ` Jason Rumney
2006-09-21  2:51 ` Eric Hanchrow
2006-09-21 10:25   ` Patrick Drechsler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvwt7zc92q.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.