unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Patrick Drechsler <patrick@pdrechsler.de>
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	[thread overview]
Message-ID: <eetp66$krm$2@sea.gmane.org> (raw)
In-Reply-To: <jwvwt7zc92q.fsf-monnier+emacs@gnu.org>

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

  reply	other threads:[~2006-09-21 10:23 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
2006-09-21 10:23   ` Patrick Drechsler [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='eetp66$krm$2@sea.gmane.org' \
    --to=patrick@pdrechsler.de \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).